Browse Source

JSBind should use OpenGL Graphics module when building Android and Web platform on windows

marynate 10 years ago
parent
commit
722cbe225c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      Source/AtomicJS/JSBind/JSBModule.cpp

+ 7 - 1
Source/AtomicJS/JSBind/JSBModule.cpp

@@ -383,7 +383,13 @@ void JSBModule::Load(const String &moduleJSONFilename)
     if (this->name_ == "Graphics")
     if (this->name_ == "Graphics")
     {
     {
 #ifdef _MSC_VER
 #ifdef _MSC_VER
-        sources.AddString("Graphics/Direct3D9");
+        if (JSBind::PLATFORM == "ANDROID" || JSBind::PLATFORM == "WEB")
+        {
+            sources.AddString("Graphics/OpenGL");
+        }
+        else {
+            sources.AddString("Graphics/Direct3D9");
+        }
 #else
 #else
         sources.AddString("Graphics/OpenGL");
         sources.AddString("Graphics/OpenGL");
 #endif
 #endif