Merge pull request #102 from notlion/gles-highp
Use highp precision when available for GLES
This commit is contained in:
commit
7a576015e4
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user