summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/glcpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/glcpp/glcpp.c')
-rw-r--r--src/glsl/glcpp/glcpp.c1
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;
}