projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
010dc29
)
mesa: initialize stencilMap, Stride if stencilRb==depthRb
author
Brian Paul
<brianp@vmware.com>
Wed, 16 Nov 2011 16:58:45 +0000
(09:58 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 16 Nov 2011 21:16:29 +0000
(14:16 -0700)
src/mesa/main/readpix.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/readpix.c
b/src/mesa/main/readpix.c
index 0b41de622241e28a83203655056feea66fe2d597..86b87534d31540c59d8bc3dabaf50ef784fdda12 100644
(file)
--- a/
src/mesa/main/readpix.c
+++ b/
src/mesa/main/readpix.c
@@
-412,6
+412,10
@@
slow_read_depth_stencil_pixels_separate(struct gl_context *ctx,
GL_MAP_READ_BIT, &stencilMap,
&stencilStride);
}
+ else {
+ stencilMap = depthMap;
+ stencilStride = depthStride;
+ }
for (j = 0; j < height; j++) {
GLubyte stencilVals[MAX_WIDTH];