From b7295775b9cd734e8011df784e982b829568680e Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Mon, 29 May 2017 01:01:04 -0400 Subject: [PATCH] - Print out warnings when Direct3D initialization fails. --- src/win32/win32video.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win32/win32video.cpp b/src/win32/win32video.cpp index 0ef278105..93da57c69 100644 --- a/src/win32/win32video.cpp +++ b/src/win32/win32video.cpp @@ -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; }