mesa: initialize stencilMap, Stride if stencilRb==depthRb

This commit is contained in:
Brian Paul 2011-11-16 09:58:45 -07:00
parent 010dc29283
commit f4c03da327

View file

@ -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];