diff options
author | Brian Paul <[email protected]> | 2011-11-16 09:58:45 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-11-16 14:16:29 -0700 |
commit | f4c03da3276bee39802236c21a0b5a31f05e2541 (patch) | |
tree | da7f205693cd13e0dcaa1ca1f46e6de96efc1bc9 /src/mesa | |
parent | 010dc29283cfc7791a29ba8a0570d8f7f9edef05 (diff) |
mesa: initialize stencilMap, Stride if stencilRb==depthRb
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/readpix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c index 0b41de62224..86b87534d31 100644 --- 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]; |