summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel/intel_tex_copy.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-10-05 14:26:16 -0600
committerBrian Paul <brianp@vmware.com>2009-10-05 14:26:16 -0600
commit79892e7976fbb91ae426f5868d5f453e977c1f17 (patch)
tree0e33ed7a02b2adc983cd900d4389a98e7fbc3bce /src/mesa/drivers/dri/intel/intel_tex_copy.c
parent3b7ec94c0db4140f72682f70262baf77be683816 (diff)
intel: use driReadDrawable in do_copy_texsubimage()
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex_copy.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex_copy.c2
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 74f7f58bbe..b241c11625 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;