Mesa (mesa_7_6_branch): intel: use driReadDrawable in do_copy_texsubimage()

Brian Paul brianp at kemper.freedesktop.org
Mon Oct 5 20:36:54 UTC 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 79892e7976fbb91ae426f5868d5f453e977c1f17
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=79892e7976fbb91ae426f5868d5f453e977c1f17

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Oct  5 14:26:16 2009 -0600

intel: use driReadDrawable in do_copy_texsubimage()

---

 src/mesa/drivers/dri/intel/intel_tex_copy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c
index 74f7f58..b241c11 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;
 




More information about the mesa-commit mailing list