diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index ce9e4efea34..823e281b9a3 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -63,7 +63,7 @@ static const unsigned known_desktop_gl_versions[] = _mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *_ctx, mesa_shader_stage stage, void *mem_ctx) - : ctx(_ctx), exts(&_ctx->Extensions), consts(&_ctx->Const), + : ctx(_ctx), exts(&_ctx->Extensions), consts(&_ctx->Const), caps(&_ctx->screen->caps), api(_ctx->API), cs_input_local_size_specified(false), cs_input_local_size(), switch_state(), warnings_enabled(true) { diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index c42cd1e70ea..436e6368fce 100644 --- a/src/compiler/glsl/glsl_parser_extras.h +++ b/src/compiler/glsl/glsl_parser_extras.h @@ -383,6 +383,7 @@ struct _mesa_glsl_parse_state { struct gl_context *const ctx; /* only to be used for debug callback. */ const struct gl_extensions *exts; const struct gl_constants *consts; + const struct pipe_caps *caps; gl_api api; void *scanner; ir_exec_list translation_unit;