OPENGL: Handle GLES2 and GL shaders uniformly.

GLES2 requires precision qualifiers to be set and allows use of precision
qualifiers. For GLES2 we define a default precision now. Since precision
qualifiers are not supported in the GLSL version we use for GL, we
introduce compatibility #defines.
This commit is contained in:
Johannes Schickel 2016-01-03 11:58:50 +01:00
parent e66e9e44d3
commit 2319fcd228
3 changed files with 28 additions and 23 deletions

View file

@ -38,12 +38,7 @@ enum {
};
extern const char *const g_defaultVertexShader;
#if !USE_FORCED_GLES2
extern const char *const g_defaultFragmentShaderGL;
#endif
#if !USE_FORCED_GL
extern const char *const g_defaultFragmentShaderGLES2;
#endif
extern const char *const g_defaultFragmentShader;
class Shader {
public: