Clear any GL errors generated in interop register. Closes #2952

This commit is contained in:
baldurk
2023-06-07 10:49:44 +01:00
parent 00dcec8a25
commit 96ff47433c
@@ -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;