|
@@ -89,9 +89,15 @@ End
|
|
#end
|
|
#end
|
|
Function glCompile:Int( type:Int,source:String )
|
|
Function glCompile:Int( type:Int,source:String )
|
|
|
|
|
|
-#If __TARGET__="windows" Or Not __DESKTOP_TARGET__
|
|
|
|
- source="precision mediump float;~n"+source
|
|
|
|
-#Endif
|
|
|
|
|
|
+ source="
|
|
|
|
+ #if GL_ES
|
|
|
|
+ #if GL_FRAGMENT_PRECISION_HIGH
|
|
|
|
+ precision highp float;
|
|
|
|
+ #else
|
|
|
|
+ precision mediump float;
|
|
|
|
+ #endif
|
|
|
|
+ #endif
|
|
|
|
+ "+source
|
|
|
|
|
|
Local shader:=glCreateShader( type )
|
|
Local shader:=glCreateShader( type )
|
|
glShaderSourceEx( shader,source )
|
|
glShaderSourceEx( shader,source )
|