marksibly 8 gadi atpakaļ
vecāks
revīzija
c1b0c6c990
1 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. 5 4
      modules/mojo/graphics/glutil.monkey2

+ 5 - 4
modules/mojo/graphics/glutil.monkey2

@@ -98,7 +98,9 @@ End
 #end
 Function glCompile:Int( type:Int,source:String )
 	
-	Const prefix:="
+	#If __TARGET__="windows" Or __MOBILE_TARGET__ Or __WEB_TARGET__
+
+		Const prefix:="
 #ifdef GL_ES
 #ifdef GL_FRAGMENT_PRECISION_HIGH
 precision highp float;
@@ -107,10 +109,9 @@ precision mediump float;
 #endif
 #endif
 "
-	source=prefix+source
-	
-	#If __TARGET__="windows" Or __MOBILE_TARGET__ Or __WEB_TARGET__
 		If glexts.GL_draw_buffers source="#extension GL_EXT_draw_buffers : require~n"+source
+
+		source=prefix+source
 	#endif
 	
 	Local shader:=glCreateShader( type )