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 <jason.ekstrand@intel.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
Jason Ekstrand
2014-08-13 11:03:36 -07:00
parent f1ef4be4be
commit a8379a405a
+3
View File
@@ -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: