intel: use driReadDrawable in do_copy_texsubimage()

This commit is contained in:
Brian Paul 2009-10-05 14:26:16 -06:00
parent 3b7ec94c0d
commit 79892e7976

View 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;