mesa/tests: Sanity check the ES2 dispatch table
[mesa.git] / src / mesa / swrast / s_bitmap.c
index 18f1c1866bf6282c20d91596bca51b58fc9b58d4..3a27929139279e7294ecd0c263a30f7a87da2b51 100644 (file)
@@ -123,7 +123,7 @@ _swrast_Bitmap( struct gl_context *ctx, GLint px, GLint py,
             src++;
       }
 
-      if (count + width >= MAX_WIDTH || row + 1 == height) {
+      if (count + width >= SWRAST_MAX_WIDTH || row + 1 == height) {
          /* flush the span */
          span.end = count;
          _swrast_write_rgba_span(ctx, &span);