From: Brian Paul Date: Wed, 16 Nov 2011 16:58:45 +0000 (-0700) Subject: mesa: initialize stencilMap, Stride if stencilRb==depthRb X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4c03da3276bee39802236c21a0b5a31f05e2541;p=mesa.git mesa: initialize stencilMap, Stride if stencilRb==depthRb --- 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];