From: Eric Anholt Date: Tue, 7 Jul 2009 20:39:29 +0000 (-0700) Subject: intel: Fall back on glCopyPixels(GL_DEPTH) or GL_STENCIL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdd7506f10d13018a9c71270eed5d3d295978081;p=mesa.git intel: Fall back on glCopyPixels(GL_DEPTH) or GL_STENCIL. --- 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);