mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-17 04:57:09 +00:00
Don't generate BGRA8 internal format for DX interop textures in GL
* Proper GL doesn't seem to support this internal format, and fortunately the contents save/load work fine with GL's built-in swizzling if we treat the texture as RGBA8 instead.
This commit is contained in:
@@ -269,6 +269,9 @@ bool WrappedOpenGL::Serialise_wglDXRegisterObjectNV(SerialiserType &ser, GLResou
|
||||
GetDXTextureProperties(dxObject, format, width, height, depth, mips, layers, samples);
|
||||
if(type != eGL_NONE)
|
||||
internalFormat = MakeGLFormat(format);
|
||||
// desktop GL doesn't support BGRA8 as an internal format for some reason
|
||||
if(internalFormat == eGL_BGRA8_EXT)
|
||||
internalFormat = eGL_RGBA8;
|
||||
#else
|
||||
RDCERR("Should never happen - cannot serialise wglDXRegisterObjectNV, interop is disabled");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user