mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fix a crash in renderer_d3d12.cpp (#3349)
If querying the debug1 interface fails, don't attempt to release it.
This commit is contained in:
@@ -858,9 +858,9 @@ namespace bgfx { namespace d3d12
|
||||
{
|
||||
debug1->SetEnableSynchronizedCommandQueueValidation(false);
|
||||
}
|
||||
}
|
||||
|
||||
DX_RELEASE(debug1, 1);
|
||||
DX_RELEASE(debug1, 1);
|
||||
}
|
||||
}
|
||||
#endif // BX_PLATFORM_WINDOWS
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user