src/render/direct3d11/SDL_render_d3d11.cpp
changeset 8564 03366aeff6c6
parent 8563 c0e68f3b6bbb
child 8565 074f3f8e43de
equal deleted inserted replaced
8563:c0e68f3b6bbb 8564:03366aeff6c6
   723     // This flag adds support for surfaces with a different color channel ordering
   723     // This flag adds support for surfaces with a different color channel ordering
   724     // than the API default. It is required for compatibility with Direct2D.
   724     // than the API default. It is required for compatibility with Direct2D.
   725     UINT creationFlags = D3D11_CREATE_DEVICE_BGRA_SUPPORT;
   725     UINT creationFlags = D3D11_CREATE_DEVICE_BGRA_SUPPORT;
   726 
   726 
   727     // Make sure Direct3D's debugging feature gets used, if the app requests it.
   727     // Make sure Direct3D's debugging feature gets used, if the app requests it.
   728     //const char *hint = SDL_GetHint(SDL_HINT_RENDER_DIRECT3D11_DEBUG);
   728     const char *hint = SDL_GetHint(SDL_HINT_RENDER_DIRECT3D11_DEBUG);
   729     //if (hint) {
   729     if (hint) {
   730     //    if (*hint == '1') {
   730         if (*hint == '1') {
   731             creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
   731             creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
   732     //    }
   732         }
   733     //}
   733     }
   734 
   734 
   735     // This array defines the set of DirectX hardware feature levels this app will support.
   735     // This array defines the set of DirectX hardware feature levels this app will support.
   736     // Note the ordering should be preserved.
   736     // Note the ordering should be preserved.
   737     // Don't forget to declare your application's minimum required feature level in its
   737     // Don't forget to declare your application's minimum required feature level in its
   738     // description.  All applications are assumed to support 9.1 unless otherwise stated.
   738     // description.  All applications are assumed to support 9.1 unless otherwise stated.