intel: Fall back on glCopyPixels(GL_DEPTH) or GL_STENCIL.
authorEric Anholt <eric@anholt.net>
Tue, 7 Jul 2009 20:39:29 +0000 (13:39 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 Jul 2009 22:36:10 +0000 (15:36 -0700)
src/mesa/drivers/dri/intel/intel_pixel_copy.c

index f523d3eead92607ea288fa20cf6d2b16841a7e6b..5d52335dee375426562ac633de396903abf58d08 100644 (file)
@@ -272,6 +272,12 @@ do_blit_copypixels(GLcontext * ctx,
    drm_clip_rect_t *cliprects;
    int x_off, y_off;
 
+   if (type == GL_DEPTH || type == GL_STENCIL) {
+      if (INTEL_DEBUG & DEBUG_FALLBACKS)
+        fprintf(stderr, "glCopyPixels() fallback: GL_DEPTH || GL_STENCIL\n");
+      return GL_FALSE;
+   }
+
    /* Update draw buffer bounds */
    _mesa_update_state(ctx);