glcpp: Remove unused gl_api bits.
authorMatt Turner <mattst88@gmail.com>
Fri, 17 Jan 2014 22:24:01 +0000 (14:24 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 23 Jan 2014 19:33:22 +0000 (11:33 -0800)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glcpp/glcpp-parse.y
src/glsl/glcpp/glcpp.c

index e6b1c220239978e8734476f28d2bb77cf7b46de9..89436d138155392c268dac34e49d9932e5f821ec 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "glcpp.h"
 #include "main/core.h" /* for struct gl_extensions */
-#include "main/mtypes.h" /* for gl_api enum */
 
 static void
 yyerror (YYLTYPE *locp, glcpp_parser_t *parser, const char *error);
index 6994d7bb95528d611b516198627547b73f29817e..c9c2ff29e6fe7e1024c9d9d7e747b008b8cb4c63 100644 (file)
@@ -101,7 +101,6 @@ 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;
 }