glcpp: Resolve implicit GLSL version to 100 if the API is ES.
[mesa.git] / src / glsl / glcpp / glcpp.c
index c9c2ff29e6fe7e1024c9d9d7e747b008b8cb4c63..6994d7bb95528d611b516198627547b73f29817e 100644 (file)
@@ -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;
 }