summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_readpix.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-11-11 07:30:18 -0700
committerBrian Paul <[email protected]>2011-11-15 07:49:25 -0700
commit6d68855df133bdd4891e8aa428787b520739e0fe (patch)
tree4d242ff9bbbc094774792440ae25cff47346568f /src/mesa/swrast/s_readpix.c
parentcc502aa9419a6fb127b264dbb131c786281cb8c7 (diff)
mesa: replace GLstencil with GLubyte
Diffstat (limited to 'src/mesa/swrast/s_readpix.c')
-rw-r--r--src/mesa/swrast/s_readpix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c
index 3cef7304a4a..3a31a0d0528 100644
--- a/src/mesa/swrast/s_readpix.c
+++ b/src/mesa/swrast/s_readpix.c
@@ -171,7 +171,7 @@ read_stencil_pixels( struct gl_context *ctx,
/* process image row by row */
for (j = 0; j < height; j++) {
GLvoid *dest;
- GLstencil stencil[MAX_WIDTH];
+ GLubyte stencil[MAX_WIDTH];
_mesa_unpack_ubyte_stencil_row(rb->Format, width, map, stencil);
dest = _mesa_image_address2d(packing, pixels, width, height,
@@ -369,7 +369,7 @@ fast_read_depth_stencil_pixels_separate(struct gl_context *ctx,
GL_MAP_READ_BIT, &stencilMap, &stencilStride);
for (j = 0; j < height; j++) {
- GLstencil stencilVals[MAX_WIDTH];
+ GLubyte stencilVals[MAX_WIDTH];
_mesa_unpack_uint_z_row(depthRb->Format, width, depthMap, dst);
_mesa_unpack_ubyte_stencil_row(stencilRb->Format, width,
@@ -410,7 +410,7 @@ slow_read_depth_stencil_pixels_separate(struct gl_context *ctx,
GL_MAP_READ_BIT, &stencilMap, &stencilStride);
for (j = 0; j < height; j++) {
- GLstencil stencilVals[MAX_WIDTH];
+ GLubyte stencilVals[MAX_WIDTH];
GLfloat depthVals[MAX_WIDTH];
_mesa_unpack_float_z_row(depthRb->Format, width, depthMap, depthVals);