OSDN Git Service

st/mesa: remove redundant calls to _mesa_set_vp_override()
authorBrian Paul <brianp@vmware.com>
Fri, 7 Aug 2009 16:49:38 +0000 (10:49 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Aug 2009 16:49:38 +0000 (10:49 -0600)
Called from core Mesa now.

src/mesa/state_tracker/st_cb_drawpixels.c

index b394031..d19a88f 100644 (file)
@@ -804,8 +804,8 @@ st_DrawPixels(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height,
       return;
    }
 
-   _mesa_set_vp_override( ctx, TRUE );
-   _mesa_update_state( ctx );
+   /* Mesa state should be up to date by now */
+   assert(ctx->NewState == 0x0);
 
    st_validate_state(st);
 
@@ -833,8 +833,6 @@ st_DrawPixels(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height,
          pipe_texture_reference(&pt, NULL);
       }
    }
-
-   _mesa_set_vp_override( ctx, FALSE );
 }