From b4d29b0afa70b0fab3a8175ce42dd23e66a15bc2 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Mon, 3 Dec 2012 20:27:32 -0800 Subject: [PATCH] Change default renderer for Win8 to DX11. --- src/config.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.h b/src/config.h index 5ff0769c..a37025e8 100644 --- a/src/config.h +++ b/src/config.h @@ -6,6 +6,8 @@ #ifndef __CONFIG_H__ #define __CONFIG_H__ + + #if !defined(BGFX_CONFIG_RENDERER_DIRECT3D9) \ && !defined(BGFX_CONFIG_RENDERER_DIRECT3D11) \ && !defined(BGFX_CONFIG_RENDERER_OPENGL) \ @@ -15,13 +17,14 @@ # ifndef BGFX_CONFIG_RENDERER_DIRECT3D9 # define BGFX_CONFIG_RENDERER_DIRECT3D9 (0 \ - | BX_PLATFORM_WINDOWS \ + | (BX_PLATFORM_WINDOWS && _WIN32_WINNT < 0x0602 /*_WIN32_WINNT_WIN8*/) \ | BX_PLATFORM_XBOX360 \ ) # endif // BGFX_CONFIG_RENDERER_DIRECT3D9 # ifndef BGFX_CONFIG_RENDERER_DIRECT3D11 # define BGFX_CONFIG_RENDERER_DIRECT3D11 (0 \ + | (BX_PLATFORM_WINDOWS && _WIN32_WINNT >= 0x0602 /*_WIN32_WINNT_WIN8*/) \ ) # endif // BGFX_CONFIG_RENDERER_DIRECT3D11