intel: use driReadDrawable in do_copy_texsubimage()
authorBrian Paul <brianp@vmware.com>
Mon, 5 Oct 2009 20:26:16 +0000 (14:26 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 5 Oct 2009 20:26:16 +0000 (14:26 -0600)
src/mesa/drivers/dri/intel/intel_tex_copy.c

index 74f7f58bbe4c595dfe3f1a89a01c986b99a55cc3..b241c116251cba1a3dc08cfe097e83f9247a64e9 100644 (file)
@@ -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;