st/mesa: use util_format_get_blocksize()
authorBrian Paul <brianp@vmware.com>
Wed, 24 Feb 2010 18:03:58 +0000 (11:03 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 24 Feb 2010 18:03:58 +0000 (11:03 -0700)
src/mesa/state_tracker/st_cb_drawpixels.c

index e9aee6b2058f1a2afafdab6dd7ea4f887d7cabd5..ba28a224e837017a3fcb46b70ff7f73328dcbd3a 100644 (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)