st/mesa: use util_format_get_blocksize()

This commit is contained in:
Brian Paul 2010-02-24 11:03:58 -07:00
parent 5bc62895e2
commit 5d8aae55f2

View file

@ -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)