Mark Sibly 7 years ago
parent
commit
ae16f6def9
1 changed files with 10 additions and 2 deletions
  1. 10 2
      modules/mojo3d/mojo3d.monkey2

+ 10 - 2
modules/mojo3d/mojo3d.monkey2

@@ -56,14 +56,22 @@ Using opengl..
 
 Function Main()
 	
+#If __DESKTOP_TARGET__
+	
 	SetConfig( "MOJO_OPENGL_PROFILE","compatibility" )
+
+	SetConfig( "MOJO3D_DEFAULT_RENDERER","deferred" )
 	
-#If __DESKTOP_TARGET__ Or __WEB_TARGET__
+#Elseif __WEB_TARGET__
+
+	SetConfig( "MOJO_OPENGL_PROFILE","es" )
 
 	SetConfig( "MOJO3D_DEFAULT_RENDERER","deferred" )
 	
-#Else if __MOBILE_TARGET__
+#Elseif __MOBILE_TARGET__
 	
+	SetConfig( "MOJO_OPENGL_PROFILE","es" )
+
 	SetConfig( "MOJO3D_DEFAULT_RENDERER","forward" )
 	
 	SetConfig( "MOJO3D_FORWARD_RENDERER_DIRECT",1 )