mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 22:10:11 +01:00
meta_blit: properly compute texture width for the CopyTexSubImage fallback
Cc: "10.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
06e9536e5f
commit
ffe609cc69
1 changed files with 1 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ blitframebuffer_texture(struct gl_context *ctx,
|
|||
}
|
||||
} else {
|
||||
GLenum tex_base_format;
|
||||
int srcW = abs(srcY1 - srcY0);
|
||||
int srcW = abs(srcX1 - srcX0);
|
||||
int srcH = abs(srcY1 - srcY0);
|
||||
/* Fall back to doing a CopyTexSubImage to get the destination
|
||||
* renderbuffer into a texture.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue