projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9166e1
)
xorg-r200-uninitialized-variable-used.patch from Redhat xorg
author
Dave Airlie
<airliedfreedesktop.org>
Sat, 31 Jul 2004 08:14:50 +0000
(08:14 +0000)
committer
Dave Airlie
<airliedfreedesktop.org>
Sat, 31 Jul 2004 08:14:50 +0000
(08:14 +0000)
src/mesa/drivers/dri/r200/r200_pixel.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r200/r200_pixel.c
b/src/mesa/drivers/dri/r200/r200_pixel.c
index
e2edbfb
..
adc6a2a
100644
(file)
--- a/
src/mesa/drivers/dri/r200/r200_pixel.c
+++ b/
src/mesa/drivers/dri/r200/r200_pixel.c
@@
-152,9
+152,10
@@
r200TryReadPixels( GLcontext *ctx,
GLvoid *pixels )
{
r200ContextPtr rmesa = R200_CONTEXT(ctx);
- GLint size;
GLint pitch = pack->RowLength ? pack->RowLength : width;
GLint blit_format;
+ GLuint cpp = rmesa->r200Screen->cpp;
+ GLint size = width * height * cpp;
if (R200_DEBUG & DEBUG_PIXEL)
fprintf(stderr, "%s\n", __FUNCTION__);