swrast: add missing state validation calls for Blit, Clear
authorBrian Paul <brianp@vmware.com>
Sat, 10 Dec 2011 18:44:43 +0000 (11:44 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 13 Dec 2011 13:45:36 +0000 (06:45 -0700)
src/mesa/swrast/s_blit.c
src/mesa/swrast/s_clear.c

index f094be8985ceda8f9a35cb2e41bcf5d7c1f05b54..2817ec12ff9d5a01be92dd38db268fd08cdf2f2d 100644 (file)
@@ -573,6 +573,9 @@ _swrast_BlitFramebuffer(struct gl_context *ctx,
       return;
    }
 
+   if (SWRAST_CONTEXT(ctx)->NewState)
+      _swrast_validate_derived(ctx);
+
    swrast_render_start(ctx);
 
    if (srcX1 - srcX0 == dstX1 - dstX0 &&
index 615747d69846cd0dbf135a8a7c40d66c591c929a..851f6d165677d40a932e590a7ae108a96dbf3ddb 100644 (file)
@@ -213,6 +213,9 @@ _swrast_Clear(struct gl_context *ctx, GLbitfield buffers)
    if (!_mesa_check_conditional_render(ctx))
       return; /* don't clear */
 
+   if (SWRAST_CONTEXT(ctx)->NewState)
+      _swrast_validate_derived(ctx);
+
    swrast_render_start(ctx);
 
    /* do software clearing here */