- Print out warnings when Direct3D initialization fails.

This commit is contained in:
Rachael Alexanderson 2017-05-29 01:01:04 -04:00
parent 1505f75669
commit b7295775b9

View file

@ -187,6 +187,7 @@ bool Win32Video::InitD3D9 ()
// Load the Direct3D 9 library. // Load the Direct3D 9 library.
if ((D3D9_dll = LoadLibraryA ("d3d9.dll")) == NULL) if ((D3D9_dll = LoadLibraryA ("d3d9.dll")) == NULL)
{ {
Printf("Unable to load d3d9.dll! Falling back to DirectDraw...\n");
return false; return false;
} }
@ -248,6 +249,7 @@ d3drelease:
D3D = NULL; D3D = NULL;
closelib: closelib:
FreeLibrary (D3D9_dll); FreeLibrary (D3D9_dll);
Printf("Direct3D acceleration failed! Falling back to DirectDraw...\n");
return false; return false;
} }