mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-13 22:31:57 +00:00
check for high precision floats on GLES, then enable if supported
This commit is contained in:
parent
f90ab6e189
commit
12294c96aa
@ -3,8 +3,25 @@
|
||||
|
||||
#if defined(HAVE_OPENGLES)
|
||||
#define CG(src) "" #src
|
||||
#define GLSL(src) "precision highp float;\n" #src
|
||||
#define GLSL_330(src) "#version 330 es\nprecision highp float;\n" #src
|
||||
#define GLSL(src) "#ifdef GL_ES\n" \
|
||||
" #ifdef GL_FRAGMENT_PRECISION_HIGH\n" \
|
||||
" precision highp float;\n" \
|
||||
" #else\n" \
|
||||
" precision mediump float;\n" \
|
||||
" #endif\n" \
|
||||
"#else\n" \
|
||||
" precision mediump float;\n" \
|
||||
"#endif\n" #src
|
||||
#define GLSL_330(src) "#version 330 es\n" \
|
||||
"#ifdef GL_ES\n" \
|
||||
" #ifdef GL_FRAGMENT_PRECISION_HIGH\n" \
|
||||
" precision highp float;\n" \
|
||||
" #else\n" \
|
||||
" precision mediump float;\n" \
|
||||
" #endif\n" \
|
||||
"#else\n" \
|
||||
" precision mediump float;\n" \
|
||||
"#endif\n" #src
|
||||
#else
|
||||
#define CG(src) "" #src
|
||||
#define GLSL(src) "" #src
|
||||
|
Loading…
x
Reference in New Issue
Block a user