src/render/direct3d11/SDL_render_d3d11.cpp
changeset 8564 03366aeff6c6
parent 8563 c0e68f3b6bbb
child 8565 074f3f8e43de
--- a/src/render/direct3d11/SDL_render_d3d11.cpp	Wed Dec 25 21:39:48 2013 -0500
+++ b/src/render/direct3d11/SDL_render_d3d11.cpp	Wed Dec 25 22:05:18 2013 -0500
@@ -725,12 +725,12 @@
     UINT creationFlags = D3D11_CREATE_DEVICE_BGRA_SUPPORT;
 
     // Make sure Direct3D's debugging feature gets used, if the app requests it.
-    //const char *hint = SDL_GetHint(SDL_HINT_RENDER_DIRECT3D11_DEBUG);
-    //if (hint) {
-    //    if (*hint == '1') {
+    const char *hint = SDL_GetHint(SDL_HINT_RENDER_DIRECT3D11_DEBUG);
+    if (hint) {
+        if (*hint == '1') {
             creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
-    //    }
-    //}
+        }
+    }
 
     // This array defines the set of DirectX hardware feature levels this app will support.
     // Note the ordering should be preserved.