WinRT: made sure d3d11 debug mode doesn't get enabled by default
authorDavid Ludwig <dludwig@pobox.com>
Wed, 25 Dec 2013 22:05:18 -0500
changeset 856403366aeff6c6
parent 8563 c0e68f3b6bbb
child 8565 074f3f8e43de
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
     1.1 --- a/src/render/direct3d11/SDL_render_d3d11.cpp	Wed Dec 25 21:39:48 2013 -0500
     1.2 +++ b/src/render/direct3d11/SDL_render_d3d11.cpp	Wed Dec 25 22:05:18 2013 -0500
     1.3 @@ -725,12 +725,12 @@
     1.4      UINT creationFlags = D3D11_CREATE_DEVICE_BGRA_SUPPORT;
     1.5  
     1.6      // Make sure Direct3D's debugging feature gets used, if the app requests it.
     1.7 -    //const char *hint = SDL_GetHint(SDL_HINT_RENDER_DIRECT3D11_DEBUG);
     1.8 -    //if (hint) {
     1.9 -    //    if (*hint == '1') {
    1.10 +    const char *hint = SDL_GetHint(SDL_HINT_RENDER_DIRECT3D11_DEBUG);
    1.11 +    if (hint) {
    1.12 +        if (*hint == '1') {
    1.13              creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
    1.14 -    //    }
    1.15 -    //}
    1.16 +        }
    1.17 +    }
    1.18  
    1.19      // This array defines the set of DirectX hardware feature levels this app will support.
    1.20      // Note the ordering should be preserved.