Skip to content

Commit

Permalink
Bug fix in the shader.
Browse files Browse the repository at this point in the history
  • Loading branch information
lecopivo committed Jun 13, 2018
1 parent c45a43f commit dce8d02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MagnumImGui.cpp
Expand Up @@ -413,13 +413,13 @@ ImguiShader::ImguiShader() {

#ifndef MAGNUM_TARGET_GLES
if (version != GL::Version::GL210) {
vert.addSource({"#define NEW_GLSL"});
frag.addSource({"#define NEW_GLSL"});
vert.addSource({"#define NEW_GLSL\n"});
frag.addSource({"#define NEW_GLSL\n"});
}
#else
if (version != Version::GLES200) {
vert.addSource({"#define NEW_GLSL"});
frag.addSource({"#define NEW_GLSL"});
vert.addSource({"#define NEW_GLSL\n"});
frag.addSource({"#define NEW_GLSL\n"});
}
#endif

Expand Down

0 comments on commit dce8d02

Please sign in to comment.