Skip to content

Commit

Permalink
[OpenGL] Fix OpenGLES shader compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Feb 17, 2024
1 parent f0bbcd7 commit 70eda32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ivis_opengl/gfx_api_gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ desc(createInfo.state_desc), vertex_buffer_desc(createInfo.attribute_description
vertexShaderHeader += "precision highp float;\n";
fragmentShaderHeader += "precision highp float;precision highp int;\n";
#else
fragmentShaderHeader = "#if GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\nprecision highp int;\n#else\nprecision mediump float;\n#endif\n";
fragmentShaderHeader += "#if GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\nprecision highp int;\n#else\nprecision mediump float;\n#endif\n";
#endif
fragmentShaderHeader += "#if __VERSION__ >= 300 || defined(GL_EXT_texture_array)\nprecision lowp sampler2DArray;\n#endif\n";
fragmentShaderHeader += "#if __VERSION__ >= 300\nprecision lowp sampler2DShadow;\nprecision lowp sampler2DArrayShadow;\n#endif\n";
Expand Down

0 comments on commit 70eda32

Please sign in to comment.