mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
glsl: Fix gl_context vs. ralloc context in check_version again, again.
Dave found some, but there were more. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58039
This commit is contained in:
parent
fd65fb5aa8
commit
12f3b3d437
1 changed files with 2 additions and 2 deletions
|
|
@ -154,9 +154,9 @@ _mesa_glsl_parse_state::check_version(unsigned required_glsl_version,
|
|||
char *problem = ralloc_vasprintf(this, fmt, args);
|
||||
va_end(args);
|
||||
const char *glsl_version_string
|
||||
= glsl_compute_version_string(ctx, false, required_glsl_version);
|
||||
= glsl_compute_version_string(this, false, required_glsl_version);
|
||||
const char *glsl_es_version_string
|
||||
= glsl_compute_version_string(ctx, true, required_glsl_es_version);
|
||||
= glsl_compute_version_string(this, true, required_glsl_es_version);
|
||||
const char *requirement_string = "";
|
||||
if (required_glsl_version && required_glsl_es_version) {
|
||||
requirement_string = ralloc_asprintf(this, " (%s or %s required)",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue