mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +00:00
- Print out warnings when Direct3D initialization fails.
This commit is contained in:
parent
1505f75669
commit
b7295775b9
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue