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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user