Merge pull request #102 from notlion/gles-highp

Use highp precision when available for GLES
This commit is contained in:
Mikko Mononen 2014-06-08 11:12:15 +03:00
commit 7a576015e4

View File

@ -384,11 +384,15 @@ static int glnvg__renderCreate(void* uptr)
"#define NANOVG_GL3 1\n";
#elif defined NANOVG_GLES2
"#version 100\n"
"precision mediump float;\n"
"#ifdef GL_FRAGMENT_PRECISION_HIGH\n"
" precision highp float;\n"
"#else\n"
" precision mediump float;\n"
"#endif\n"
"#define NANOVG_GL2 1\n";
#elif defined NANOVG_GLES3
"#version 300 es\n"
"precision mediump float;\n"
"precision highp float;\n"
"#define NANOVG_GL3 1\n";
#endif