File tree Expand file tree Collapse file tree
src/openfl/utils/_internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class ShaderMacro
6565 all have a second argument which, if true, will use `processGLSLText` to convert the text to be compatible with the current GLSL version.
6666 Defaults to false to prevent converting user-defined GLSL.
6767 **/
68- var shouldProcess = meta .params .length > 1 && cast (meta .params [1 ].getValue (), Bool );
68+ var shouldProcess = /* meta.params.length > 1 && cast(meta.params[1].getValue(), Bool)*/ true ;
6969
7070 switch (meta .name )
7171 {
@@ -174,7 +174,7 @@ class ShaderMacro
174174 all have a second argument which, if true, will use `processGLSLText` to convert the text to be compatible with the current GLSL version.
175175 Defaults to false to prevent converting user-defined GLSL.
176176 **/
177- var shouldProcess = meta .params .length > 1 && cast (meta .params [1 ].getValue (), Bool );
177+ var shouldProcess = /* meta.params.length > 1 && cast(meta.params[1].getValue(), Bool)*/ true ;
178178
179179 switch (meta .name )
180180 {
@@ -444,7 +444,7 @@ class ShaderMacro
444444 {
445445 // Specify the default glVersion.
446446 // We can use compile defines to guess the value that prevents crashes in the majority of cases.
447- return #if (android) " 100 " #elseif (web) " 100 " #elseif (mac) " 120 " #elseif (desktop) " 150 " #else " 100 " #end ;
447+ return " 300 es " ;
448448 }
449449
450450 /**
You can’t perform that action at this time.
0 commit comments