summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_pixel_copy.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-07-07 13:39:29 -0700
committerEric Anholt <eric@anholt.net>2009-07-07 15:36:10 -0700
commitbdd7506f10d13018a9c71270eed5d3d295978081 (patch)
treea7b999764c38954fa65d47c01ecc5c9d008d9aea /src/mesa/drivers/dri/intel/intel_pixel_copy.c
parent510c3bd7a1a8f6e350ca7b05ced1f0323098b2eb (diff)
downloadexternal_mesa3d-bdd7506f10d13018a9c71270eed5d3d295978081.zip
external_mesa3d-bdd7506f10d13018a9c71270eed5d3d295978081.tar.gz
external_mesa3d-bdd7506f10d13018a9c71270eed5d3d295978081.tar.bz2
intel: Fall back on glCopyPixels(GL_DEPTH) or GL_STENCIL.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_pixel_copy.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_pixel_copy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_pixel_copy.c b/src/mesa/drivers/dri/intel/intel_pixel_copy.c
index f523d3e..5d52335 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_copy.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_copy.c
@@ -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);