projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
glcpp: Resolve implicit GLSL version to 100 if the API is ES.
[mesa.git]
/
src
/
glsl
/
glcpp
/
glcpp.c
diff --git
a/src/glsl/glcpp/glcpp.c
b/src/glsl/glcpp/glcpp.c
index c9c2ff29e6fe7e1024c9d9d7e747b008b8cb4c63..6994d7bb95528d611b516198627547b73f29817e 100644
(file)
--- 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;
}