diff options
author | Eric Anholt <[email protected]> | 2009-07-07 13:39:29 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-07-07 15:36:10 -0700 |
commit | bdd7506f10d13018a9c71270eed5d3d295978081 (patch) | |
tree | a7b999764c38954fa65d47c01ecc5c9d008d9aea /src/mesa/drivers/dri/intel/intel_pixel_copy.c | |
parent | 510c3bd7a1a8f6e350ca7b05ced1f0323098b2eb (diff) |
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.c | 6 |
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 f523d3eead9..5d52335dee3 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); |