Browse Source

Shaders: clean up redundant preprocessor elif condition in a shader.

pull/617/head
Vladimír Vondruš 3 years ago
parent
commit
ee2d56c3d3
  1. 2
      src/Magnum/Shaders/Line.frag
  2. 2
      src/Magnum/Shaders/Line.vert

2
src/Magnum/Shaders/Line.frag

@ -34,7 +34,7 @@
/* See the corresponding block in Line.vert for more information */
#ifndef GL_ES
#define CAN_USE_NOPERSPECTIVE
#elif defined(GL_ES) && defined(GL_NV_shader_noperspective_interpolation)
#elif defined(GL_NV_shader_noperspective_interpolation)
#extension GL_NV_shader_noperspective_interpolation: require
#define CAN_USE_NOPERSPECTIVE
#endif

2
src/Magnum/Shaders/Line.vert

@ -37,7 +37,7 @@
extra instructions, so the noperspective keyword is preferred). */
#ifndef GL_ES
#define CAN_USE_NOPERSPECTIVE
#elif defined(GL_ES) && defined(GL_NV_shader_noperspective_interpolation)
#elif defined(GL_NV_shader_noperspective_interpolation)
#extension GL_NV_shader_noperspective_interpolation: require
#define CAN_USE_NOPERSPECTIVE
#endif

Loading…
Cancel
Save