summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/glcpp.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-09-05 01:27:02 -0700
committerKenneth Graunke <[email protected]>2010-09-07 17:30:37 -0700
commit7dcfc44b72f00ba5a38cb02123c80113440f0de9 (patch)
treecb119dea4be95f12bab48bddf6f21cfd9ed9592b /src/glsl/glcpp/glcpp.c
parent719caa403ecc3345b86708f8172600d80132d6cb (diff)
glsl: Define GL_ES preprocessor macro if API is OpenGL ES 2.0.
Also define it if #version 100 is encountered.
Diffstat (limited to 'src/glsl/glcpp/glcpp.c')
-rw-r--r--src/glsl/glcpp/glcpp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/glcpp/glcpp.c b/src/glsl/glcpp/glcpp.c
index 56714936bbc..8d1ced571b4 100644
--- a/src/glsl/glcpp/glcpp.c
+++ b/src/glsl/glcpp/glcpp.c
@@ -28,6 +28,7 @@
#include <string.h>
#include <errno.h>
#include "glcpp.h"
+#include "main/mtypes.h"
extern int yydebug;
@@ -111,7 +112,7 @@ main (int argc, char *argv[])
if (shader == NULL)
return 1;
- ret = preprocess(ctx, &shader, &info_log, NULL);
+ ret = preprocess(ctx, &shader, &info_log, NULL, API_OPENGL);
printf("%s", shader);
fprintf(stderr, "%s", info_log);