mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-17 04:57:09 +00:00
Clear any GL errors generated in interop register. Closes #2952
This commit is contained in:
@@ -131,6 +131,9 @@ HANDLE WrappedOpenGL::wglDXRegisterObjectNV(HANDLE hDevice, void *dxObject, GLui
|
||||
|
||||
GL.glTextureParameteriEXT(wrapped->res.name, type, eGL_TEXTURE_MAX_LEVEL, GLint(mips - 1));
|
||||
|
||||
// consume any errors
|
||||
ClearGLErrors();
|
||||
|
||||
ResourceId texId = record->GetResourceID();
|
||||
m_Textures[texId].resource = wrapped->res;
|
||||
m_Textures[texId].curType = type;
|
||||
|
||||
Reference in New Issue
Block a user