Skip to content

Commit

Permalink
fix: Only convert shaders on desktop.
Browse files Browse the repository at this point in the history
  • Loading branch information
crykn committed Mar 10, 2024
1 parent 26a821e commit 55f318b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ public static boolean mustUse32CShader() {
// Since gl30 != null, we can be sure that we aren't running on ANGLE
// TODO: use PlatformUtils.isMac (see
// https://github.com/libgdx/libgdx/pull/5960)
return Gdx.gl30 != null && UIUtils.isMac;
return (Gdx.app.getType() == ApplicationType.Desktop
|| Gdx.app.getType() == ApplicationType.HeadlessDesktop)
&& Gdx.gl30 != null && UIUtils.isMac;
}

public static String getDefaultShaderVersionStatement() {
Expand Down

0 comments on commit 55f318b

Please sign in to comment.