- 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
1 changed files with 2 additions and 0 deletions

View File

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