Module: Mesa
Branch: master
Commit: ffe609cc69f328de5b57d4d7ab1d270fcf28de5f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffe609cc69f328de5b57d4d7ab1d270fcf28de5f

Author: Jason Ekstrand <jason.ekstr...@intel.com>
Date:   Fri Jun 13 12:15:04 2014 -0700

meta_blit: properly compute texture width for the CopyTexSubImage fallback

Cc: "10.2" <mesa-sta...@lists.freedesktop.org>

Reviewed-by: Brian Paul <bri...@vmware.com>
Reviewed-by: Matt Turner <matts...@gmail.com>

---

 src/mesa/drivers/common/meta_blit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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.

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to