glamor: Move shader precision stuff from build time to shader compile time.
This is the last desktop-versus-ES2 build ifdef in core glamor. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
1adac62a7d
commit
f8d384fa8f
|
@ -37,11 +37,10 @@
|
|||
|
||||
#include <epoxy/gl.h>
|
||||
|
||||
#ifdef GLAMOR_GLES2
|
||||
#define GLAMOR_DEFAULT_PRECISION "precision mediump float;\n"
|
||||
#else
|
||||
#define GLAMOR_DEFAULT_PRECISION
|
||||
#endif
|
||||
#define GLAMOR_DEFAULT_PRECISION \
|
||||
"#ifdef GL_ES\n" \
|
||||
"precision mediump float;\n" \
|
||||
"#endif\n"
|
||||
|
||||
#ifdef RENDER
|
||||
#include "glyphstr.h"
|
||||
|
|
Loading…
Reference in New Issue
Block a user