mesa: Fix bug in _mesa_swizzle_ubyte_image
This commit is contained in:
committed by
Jakob Bornecrantz
parent
ba344753b1
commit
b623fa9e2d
@@ -823,7 +823,8 @@ _mesa_swizzle_ubyte_image(GLcontext *ctx,
|
||||
|
||||
/* _mesa_printf("map %d %d %d %d\n", map[0], map[1], map[2], map[3]); */
|
||||
|
||||
if (srcRowStride == dstRowStride &&
|
||||
if (srcComponents == dstComponents &&
|
||||
srcRowStride == dstRowStride &&
|
||||
srcRowStride == srcWidth * srcComponents &&
|
||||
dimensions < 3) {
|
||||
/* 1 and 2D images only */
|
||||
|
||||
Reference in New Issue
Block a user