Skip to content

Commit ff665f1

Browse files
committed
Implement Angle for Desktop and iOS
1 parent 8f39a5a commit ff665f1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/openfl/utils/_internal/ShaderMacro.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)