projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bc6289
)
st/mesa: use util_format_get_blocksize()
author
Brian Paul
<brianp@vmware.com>
Wed, 24 Feb 2010 18:03:58 +0000
(11:03 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 24 Feb 2010 18:03:58 +0000
(11:03 -0700)
src/mesa/state_tracker/st_cb_drawpixels.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_drawpixels.c
b/src/mesa/state_tracker/st_cb_drawpixels.c
index e9aee6b2058f1a2afafdab6dd7ea4f887d7cabd5..ba28a224e837017a3fcb46b70ff7f73328dcbd3a 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/
src/mesa/state_tracker/st_cb_drawpixels.c
@@
-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)