summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-10-01 16:04:38 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-10-01 16:04:38 +0000
commitcef88397a6fbd56a370fc0edb3b9763aa5162fd0 (patch)
treeddb61b17cc659b3422d16deaab64333e7b106b93 /src
parent7f78c93015fc65b351e765c2900ccd2f83d6d34e (diff)
fix an assertion
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast/s_texstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_texstore.c b/src/mesa/swrast/s_texstore.c
index 4f4684ddb5..fce20011d2 100644
--- a/src/mesa/swrast/s_texstore.c
+++ b/src/mesa/swrast/s_texstore.c
@@ -192,7 +192,7 @@ read_depth_stencil_image(GLcontext *ctx, GLint x, GLint y,
for (i = 0; i < height; i++) {
GLstencil stencil[MAX_WIDTH];
GLint j;
- ASSERT(sizeof(GLstencil) == stencilRb->StencilBits);
+ ASSERT(8 * sizeof(GLstencil) == stencilRb->StencilBits);
_swrast_get_row(ctx, stencilRb, width, x, y + i,
stencil, sizeof(GLstencil));
for (j = 0; j < width; j++) {