mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
_mesa_swizzle_ubyt_image: Don't use single swizzle_copy call
if components don't match. fix #13508
This commit is contained in:
parent
762c074012
commit
7d8df58a63
1 changed files with 1 additions and 0 deletions
|
|
@ -809,6 +809,7 @@ _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 &&
|
||||
srcComponents == dstComponents &&
|
||||
srcRowStride == srcWidth * srcComponents &&
|
||||
dimensions < 3) {
|
||||
/* 1 and 2D images only */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue