summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-15 01:36:52 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-15 01:36:52 +0000
commitb7e3e0d64ea53b58ffa4cfdb4d100aaea5656df0 (patch)
tree37bfdfeeaf95e58381df1d51b15405db327338ac
parent19b83221696f124bfe1fa7e72842c62c3f72ee43 (diff)
downloadexternal_mesa3d-b7e3e0d64ea53b58ffa4cfdb4d100aaea5656df0.zip
external_mesa3d-b7e3e0d64ea53b58ffa4cfdb4d100aaea5656df0.tar.gz
external_mesa3d-b7e3e0d64ea53b58ffa4cfdb4d100aaea5656df0.tar.bz2
s/GLuint/GLushort/ in read_depth_stencil_image()
-rw-r--r--src/mesa/swrast/s_texstore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_texstore.c b/src/mesa/swrast/s_texstore.c
index a3e6955..d6b98ac 100644
--- a/src/mesa/swrast/s_texstore.c
+++ b/src/mesa/swrast/s_texstore.c
@@ -148,11 +148,12 @@ read_depth_stencil_image(GLcontext *ctx, GLint x, GLint y,
}
}
else {
- GLuint z16[MAX_WIDTH];
+ GLushort z16[MAX_WIDTH];
ASSERT(depthRb->DataType == GL_UNSIGNED_SHORT);
for (i = 0; i < height; i++) {
GLint j;
_swrast_get_row(ctx, depthRb, width, x, y + i, z16, sizeof(GLushort));
+ /* convert GLushorts to GLuints */
for (j = 0; j < width; j++) {
dst[j] = z16[j];
}