intel: Update mesa state in blit operations that want post-scissor draw bounds.
authorEric Anholt <eric@anholt.net>
Thu, 18 Dec 2008 05:18:20 +0000 (21:18 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 19 Dec 2008 21:04:29 +0000 (13:04 -0800)
src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
src/mesa/drivers/dri/intel/intel_pixel_copy.c

index e3ce1494e5d307927c8bb316875c8ae0a9743822..fd2ea7989eb7465e861829d6d85c5d278d37041c 100644 (file)
@@ -32,6 +32,7 @@
 #include "main/mtypes.h"
 #include "main/macros.h"
 #include "main/bufferobj.h"
+#include "main/state.h"
 #include "swrast/swrast.h"
 
 #include "intel_screen.h"
@@ -172,6 +173,9 @@ do_blit_bitmap( GLcontext *ctx,
    drm_clip_rect_t *cliprects;
    int x_off, y_off;
 
+   /* Update draw buffer bounds */
+   _mesa_update_state(ctx);
+
    if (!dst)
        return GL_FALSE;
 
index 1505af22864e7a1f9680e19f6cdbdadb8d29e982..447c6494e79107291e31a2342d0e821e9ce20c13 100644 (file)
@@ -266,6 +266,9 @@ do_blit_copypixels(GLcontext * ctx,
    drm_clip_rect_t *cliprects;
    int x_off, y_off;
 
+   /* Update draw buffer bounds */
+   _mesa_update_state(ctx);
+
    /* Copypixels can be more than a straight copy.  Ensure all the
     * extra operations are disabled:
     */