Skip to content

Commit

Permalink
Added default version for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Jun 12, 2024
1 parent 13f2ff9 commit 4bf36de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/openfl/utils/_internal/ShaderMacro.hx
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ class ShaderMacro
{
// Specify the default glVersion.
// We can use compile defines to guess the value that prevents crashes in the majority of cases.
return #if (android) "100" #elseif (web) "100" #else "100" #end;
return #if (android) "100" #elseif (web) "100" #elseif (mac) "120" #else "100" #end;
}

/**
Expand Down Expand Up @@ -659,7 +659,8 @@ class ShaderMacro
return result;

case "330":
return glExtensions;
var result = buildGLSLExtensions(glExtensions, "320 es", isFragment);
return result;

case "400":
return glExtensions;
Expand Down

0 comments on commit 4bf36de

Please sign in to comment.