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> #include <epoxy/gl.h>
#ifdef GLAMOR_GLES2 #define GLAMOR_DEFAULT_PRECISION \
#define GLAMOR_DEFAULT_PRECISION "precision mediump float;\n" "#ifdef GL_ES\n" \
#else "precision mediump float;\n" \
#define GLAMOR_DEFAULT_PRECISION "#endif\n"
#endif
#ifdef RENDER #ifdef RENDER
#include "glyphstr.h" #include "glyphstr.h"