16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

fixes for gles mode

This commit is contained in:
milek7
2019-09-27 13:26:00 +02:00
parent cebf5de86a
commit a3abdeac63
6 changed files with 31 additions and 19 deletions

View File

@@ -220,11 +220,11 @@ gl::shader::shader(const std::string &filename)
}
else
{
if (type == GL_GEOMETRY_SHADER) {
if (GLAD_GL_ES_VERSION_3_1) {
str += "#version 310 es\n";
str += "#extension EXT_geometry_shader : require\n";
}
else {
if (type == GL_GEOMETRY_SHADER)
str += "#extension GL_EXT_geometry_shader : require\n";
} else {
str += "#version 300 es\n";
}
str += "precision highp float;\n";