diff options
author | Kenneth Graunke <[email protected]> | 2010-09-05 01:27:02 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-09-07 17:30:37 -0700 |
commit | 7dcfc44b72f00ba5a38cb02123c80113440f0de9 (patch) | |
tree | cb119dea4be95f12bab48bddf6f21cfd9ed9592b /src/glsl/glcpp/glcpp.c | |
parent | 719caa403ecc3345b86708f8172600d80132d6cb (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.c | 3 |
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); |