From: Jordan Justen Date: Tue, 24 Jul 2012 21:51:05 +0000 (-0700) Subject: meta: add support for using API_OPENGL_CORE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f099df5672a68cf165f550278831356c903515f;p=mesa.git meta: add support for using API_OPENGL_CORE Signed-off-by: Jordan Justen Reviewed-by: Brian Paul Reviewed-by: Eric Anholt Reviewed-by: Ian Romanick --- diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index bf4d7180178..6846bbc60be 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -1848,7 +1848,7 @@ meta_glsl_clear_init(struct gl_context *ctx, struct clear_state *clear) clear->ColorLocation = _mesa_GetUniformLocationARB(clear->ShaderProg, "color"); - if (ctx->API == API_OPENGL && ctx->Const.GLSLVersion >= 130) { + if (_mesa_is_desktop_gl(ctx) && ctx->Const.GLSLVersion >= 130) { vs = compile_shader_with_debug(ctx, GL_VERTEX_SHADER, vs_int_source); fs = compile_shader_with_debug(ctx, GL_FRAGMENT_SHADER, fs_int_source);