Skip to content

Commit

Permalink
Force glsl version 300 es for ES builds
Browse files Browse the repository at this point in the history
  • Loading branch information
thewierdnut committed Aug 12, 2024
1 parent c56aad4 commit c14a74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ GLuint Shader::Compile(const char *str, GLenum type)
}
if(glsl.find("GLSL ES") != std::string::npos)
{
version += " es";
version = "#version 300 es";
}
version += '\n';
}
Expand Down

0 comments on commit c14a74e

Please sign in to comment.