Browse Source

Fix for compiling in D3D9 mode on mingw-w64.

Lasse Öörni 12 years ago
parent
commit
cb0f3b7109
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/Engine/Graphics/Direct3D9/D3D9Graphics.cpp

+ 5 - 0
Source/Engine/Graphics/Direct3D9/D3D9Graphics.cpp

@@ -65,6 +65,11 @@ extern "C" {
     __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
 }
 
+// Fix missing define in MinGW headers
+#ifndef D3DPRESENT_LINEAR_CONTENT
+#define D3DPRESENT_LINEAR_CONTENT 0x00000002L
+#endif
+
 namespace Urho3D
 {