mirror of
https://github.com/brl/mutter.git
synced 2025-08-04 23:54:40 +00:00
cogl: Fix broken check for COGL_DISABLE_GL_EXTENSION envvar
This check was always true since the variable is already set in the if() condition above. Presumably this was meant to check for empty strings, so do that. CID: #1491518 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2061>
This commit is contained in:
@@ -363,13 +363,17 @@ _cogl_context_get_gl_extensions (CoglContext *context)
|
||||
char **split_env_disabled_extensions;
|
||||
char **src, **dst;
|
||||
|
||||
if (env_disabled_extensions)
|
||||
if (*env_disabled_extensions)
|
||||
{
|
||||
split_env_disabled_extensions =
|
||||
g_strsplit (env_disabled_extensions,
|
||||
",",
|
||||
0 /* no max tokens */);
|
||||
}
|
||||
else
|
||||
{
|
||||
split_env_disabled_extensions = NULL;
|
||||
}
|
||||
|
||||
for (dst = ret, src = ret;
|
||||
*src;
|
||||
|
Reference in New Issue
Block a user