mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
glsl/standalone: Use API_OPENGL_CORE if the GLSL version is >= 1.40
Otherwise extensions to 1.40 that are only for core profile won't work. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
afd99734db
commit
798d1b8816
1 changed files with 5 additions and 1 deletions
|
|
@ -331,7 +331,11 @@ standalone_compile_shader(const struct standalone_options *_options,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
initialize_context(ctx, (glsl_es) ? API_OPENGLES2 : API_OPENGL_COMPAT);
|
||||
if (glsl_es) {
|
||||
initialize_context(ctx, API_OPENGLES2);
|
||||
} else {
|
||||
initialize_context(ctx, options->glsl_version > 130 ? API_OPENGL_CORE : API_OPENGL_COMPAT);
|
||||
}
|
||||
|
||||
struct gl_shader_program *whole_program;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue