Browse Source

On 32bit we should try DX9 too on Win 8

Miodrag Milanovic 11 years ago
parent
commit
13ca8fc45b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/bgfx.cpp

+ 2 - 0
src/bgfx.cpp

@@ -1365,6 +1365,8 @@ again:
 				{
 				{
 					first  = RendererType::Direct3D11 /* Direct3D12 */;
 					first  = RendererType::Direct3D11 /* Direct3D12 */;
 					second = RendererType::Direct3D11;
 					second = RendererType::Direct3D11;
+					if (!s_rendererCreator[second].supported)
+						second = RendererType::Direct3D9;
 				}
 				}
 				else if (windowsVersionIsOrAbove(0x0601) )
 				else if (windowsVersionIsOrAbove(0x0601) )
 				{
 				{