Don't force format on GL when remapping sRGB format

This commit is contained in:
baldurk
2020-05-17 00:57:22 +01:00
parent e3f7275b85
commit 286b64c488
+1 -1
View File
@@ -2325,7 +2325,7 @@ void GLReplay::GetTextureData(ResourceId tex, const Subresource &sub,
{
MakeCurrentReplayContext(m_DebugCtx);
GLenum finalFormat = IsSRGBFormat(intFormat) ? eGL_SRGB8_ALPHA8 : remapFormat;
GLenum finalFormat = remapFormat;
GLenum newtarget = (texType == eGL_TEXTURE_3D ? eGL_TEXTURE_3D : eGL_TEXTURE_2D);
// create temporary texture of width/height in the new format to render to