diff options
author | Matt Turner <[email protected]> | 2014-01-26 18:06:18 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-01-27 21:15:35 -0800 |
commit | c59a605c70752b584a05bc6f129a1aa894c861ce (patch) | |
tree | c45e47947a49927eafea71be8dd98bb77eaf3e8a /src/glsl/glcpp/glcpp.c | |
parent | 3e0e9e3bf9e597eb74b06381b3418c958be4d452 (diff) |
glcpp: Resolve implicit GLSL version to 100 if the API is ES.
Fixes a regression since b2d1c579 where ES shaders without a #version
declaration would fail to compile if their precision declaration was
wrapped in the standard #ifdef GL_ES check.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74066
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/glcpp/glcpp.c')
-rw-r--r-- | src/glsl/glcpp/glcpp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp.c b/src/glsl/glcpp/glcpp.c index c9c2ff29e6f..6994d7bb955 100644 --- a/src/glsl/glcpp/glcpp.c +++ b/src/glsl/glcpp/glcpp.c @@ -101,6 +101,7 @@ load_text_file(void *ctx, const char *filename) static void init_fake_gl_context (struct gl_context *gl_ctx) { + gl_ctx->API = API_OPENGL_COMPAT; gl_ctx->Const.DisableGLSLLineContinuations = false; } |