st/mesa: use util_format_get_blocksize()
This commit is contained in:
@@ -319,7 +319,7 @@ make_texture(struct st_context *st,
|
||||
|
||||
pipeFormat = st_mesa_format_to_pipe_format(mformat);
|
||||
assert(pipeFormat);
|
||||
cpp = st_sizeof_format(pipeFormat);
|
||||
cpp = util_format_get_blocksize(pipeFormat);
|
||||
|
||||
pixels = _mesa_map_pbo_source(ctx, unpack, pixels);
|
||||
if (!pixels)
|
||||
|
||||
Reference in New Issue
Block a user