Browse Source

Merge pull request #82 from marynate/PR-JSBind-win-fix

Fixed binding of android and web platform on windows
JoshEngebretson 10 years ago
parent
commit
28885123d5
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")
     {
 #ifdef _MSC_VER
-        sources.AddString("Graphics/Direct3D9");
+        if (JSBind::PLATFORM == "ANDROID" || JSBind::PLATFORM == "WEB")
+        {
+            sources.AddString("Graphics/OpenGL");
+        }
+        else {
+            sources.AddString("Graphics/Direct3D9");
+        }
 #else
         sources.AddString("Graphics/OpenGL");
 #endif