mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
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:
parent
4aecd8f031
commit
0f099df567
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue