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:
Eric Anholt 2013-12-27 02:13:27 -08:00
parent 1adac62a7d
commit f8d384fa8f

View File

@ -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"