remove unnecessary pre-processor directives

master
David Zhao 6 years ago
parent 96286f8c6f
commit c12541bb28

@ -1,19 +1,9 @@
#ifdef GL_ES #ifndef GL_ES
precision mediump float;
// Not all GPUs support high precision, so we should fall back to medium precision.
#ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp
#endif
#else
// Since glsl 1.1 doesn't define precision qualifiers but GL_ES does,
// Define them as nothing to avoid compilation issues.
#define lowp #define lowp
#define mediump
#define highp #define highp
#endif #endif
varying highp vec2 v_Position; varying highp vec2 v_Position;
varying lowp vec4 v_Colour; varying lowp vec4 v_Colour;

Loading…
Cancel
Save