Don't swizzle R/B channels for BGRA proxy textures

This commit is contained in:
Janos Pantos
2017-12-20 19:01:05 +01:00
committed by Baldur Karlsson
parent 8119f98c65
commit 3a0c55d0f7
+2 -1
View File
@@ -2979,7 +2979,8 @@ ResourceId GLReplay::CreateProxyTexture(const TextureDescription &templateTex)
gl.glTexParameteri(target, eGL_TEXTURE_MAX_LEVEL, templateTex.mips - 1);
}
if(templateTex.format.bgraOrder && target != eGL_NONE)
// Swizzle R/B channels only for non BGRA textures
if(templateTex.format.bgraOrder && target != eGL_NONE && baseFormat != eGL_BGRA)
{
if(HasExt[ARB_texture_swizzle] || HasExt[EXT_texture_swizzle])
{