mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
Don't swizzle R/B channels for BGRA proxy textures
This commit is contained in:
committed by
Baldur Karlsson
parent
8119f98c65
commit
3a0c55d0f7
@@ -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])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user