From ffe609cc69f328de5b57d4d7ab1d270fcf28de5f Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 13 Jun 2014 12:15:04 -0700 Subject: meta_blit: properly compute texture width for the CopyTexSubImage fallback Cc: "10.2" Reviewed-by: Brian Paul Reviewed-by: Matt Turner --- src/mesa/drivers/common/meta_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c index f26ef93c1b9..bbf0c3c4530 100644 --- a/src/mesa/drivers/common/meta_blit.c +++ b/src/mesa/drivers/common/meta_blit.c @@ -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. -- cgit v1.2.3