From: Brian Paul Date: Sat, 1 Oct 2005 16:04:38 +0000 (+0000) Subject: fix an assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cef88397a6fbd56a370fc0edb3b9763aa5162fd0;p=mesa.git fix an assertion --- diff --git a/src/mesa/swrast/s_texstore.c b/src/mesa/swrast/s_texstore.c index 4f4684ddb57..fce20011d2a 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++) {