From 4d16628f1c62d2c380ded59803acb9ff1d718a7d Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Wed, 25 Dec 2013 22:05:18 -0500 Subject: [PATCH] WinRT: made sure d3d11 debug mode doesn't get enabled by default D3D11 debug mode got inadvertently enabled, in all cases, via changeset c0e68f3. This change reverts that. --- src/render/direct3d11/SDL_render_d3d11.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/render/direct3d11/SDL_render_d3d11.cpp b/src/render/direct3d11/SDL_render_d3d11.cpp index f285a644a..8e094bf0f 100644 --- a/src/render/direct3d11/SDL_render_d3d11.cpp +++ b/src/render/direct3d11/SDL_render_d3d11.cpp @@ -725,12 +725,12 @@ D3D11_CreateDeviceResources(SDL_Renderer * renderer) 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.