mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
intel: use driReadDrawable in do_copy_texsubimage()
This commit is contained in:
parent
3b7ec94c0d
commit
79892e7976
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue