From a8379a405aaca0c76252a45de00d6324baedfb85 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 13 Aug 2014 11:03:36 -0700 Subject: mesa/texstore: Don't use the _mesa_swizzle_and_convert if we need transfer ops The _mesa_swizzle_and_convert path can't do transfer ops, so we should bail if they're needed. Signed-off-by: Jason Ekstrand Reviewed-by: Roland Scheidegger --- src/mesa/main/texstore.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/main/texstore.c') diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 4ea5bd80a5b..f2eb0def233 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -1498,6 +1498,9 @@ texstore_swizzle(TEXSTORE_PARAMS) if (srcFormat == GL_COLOR_INDEX) return GL_FALSE; + if (_mesa_texstore_needs_transfer_ops(ctx, baseInternalFormat, dstFormat)) + return GL_FALSE; + switch (srcType) { case GL_FLOAT: case GL_UNSIGNED_BYTE: -- cgit v1.2.3