summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2014-06-13 12:15:04 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2014-06-13 13:09:21 -0700
commitffe609cc69f328de5b57d4d7ab1d270fcf28de5f (patch)
tree1a4ef84a640f5679d9c69ef36b77428d3826b900 /src/mesa/drivers/common
parent06e9536e5f5f0cc280385bcf813ecdcf6573401b (diff)
downloadexternal_mesa3d-ffe609cc69f328de5b57d4d7ab1d270fcf28de5f.zip
external_mesa3d-ffe609cc69f328de5b57d4d7ab1d270fcf28de5f.tar.gz
external_mesa3d-ffe609cc69f328de5b57d4d7ab1d270fcf28de5f.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/common')
-rw-r--r--src/mesa/drivers/common/meta_blit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c
index f26ef93..bbf0c3c 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.