If the real interop registration fails, return NULL

This commit is contained in:
baldurk
2018-10-25 15:29:50 +01:00
parent 1b5ffb0186
commit 034d83c4ff
@@ -107,6 +107,12 @@ HANDLE WrappedOpenGL::wglDXRegisterObjectNV(HANDLE hDevice, void *dxObject, GLui
SERIALISE_TIME_CALL(wrapped->real = GL.wglDXRegisterObjectNV(hDevice, real, name, type, access));
if(wrapped->real == NULL)
{
delete wrapped;
return NULL;
}
{
RDCASSERT(record);