mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
If the real interop registration fails, return NULL
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user