mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 08:00:13 +01:00
st/mesa: use util_format_get_blocksize()
This commit is contained in:
parent
5bc62895e2
commit
5d8aae55f2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue