mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -04:00
Immediately terminate the game if Direct3DCreate9 returns NULL, instead of randomly crashing from invalid memory access later (Thanks aleksb385)
This commit is contained in:
parent
68c24fd4f4
commit
d717c51059
@ -348,6 +348,7 @@ static void CreateD3D9(void) {
|
||||
|
||||
_direct3DCreate9 = DynamicLib_Get2(lib, "Direct3DCreate9");
|
||||
d3d = _direct3DCreate9(D3D_SDK_VERSION);
|
||||
if (!d3d) Logger_Abort("Direct3DCreate9 returned NULL");
|
||||
}
|
||||
|
||||
static void FindCompatibleViewFormat(void) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user