meta: add support for using API_OPENGL_CORE
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user