mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
util: Use pf_get_size().
This commit is contained in:
parent
8b11fa4d44
commit
64d854ebf7
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ util_blit_pixels(struct blit_state *ctx,
|
|||
texTemp.height[0] = srcH;
|
||||
texTemp.depth[0] = 1;
|
||||
texTemp.compressed = 0;
|
||||
texTemp.cpp = pf_get_bits(src->format) / 8;
|
||||
texTemp.cpp = pf_get_size(src->format);
|
||||
|
||||
tex = screen->texture_create(screen, &texTemp);
|
||||
if (!tex)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue