From: Brian Paul Date: Mon, 5 Oct 2009 20:26:16 +0000 (-0600) Subject: intel: use driReadDrawable in do_copy_texsubimage() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79892e7976fbb91ae426f5868d5f453e977c1f17;p=mesa.git intel: use driReadDrawable in do_copy_texsubimage() --- diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c index 74f7f58bbe4..b241c116251 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_copy.c +++ b/src/mesa/drivers/dri/intel/intel_tex_copy.c @@ -135,7 +135,7 @@ do_copy_texsubimage(struct intel_context *intel, if (ctx->ReadBuffer->Name == 0) { /* reading from a window, adjust x, y */ - __DRIdrawablePrivate *dPriv = intel->driDrawable; + const __DRIdrawablePrivate *dPriv = intel->driReadDrawable; y = dPriv->y + (dPriv->h - (y + height)); x += dPriv->x;