From 89b254a74ba3b64f98f8ad0727f5e420945664c1 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Wed, 30 Nov 2022 17:32:14 +0800 Subject: [PATCH] gles3: Ensure missing_extensions is always populated This appears to be the only explanation for `init_secondary_gpu_data_gpu` crashing in `g_strjoinv`, but I don't know the exact conditions causing `glGetString (GL_EXTENSIONS)` to return NULL. https://launchpad.net/bugs/1994011 Part-of: --- src/backends/meta-gles3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/meta-gles3.c b/src/backends/meta-gles3.c index 727b3c125..23a024b14 100644 --- a/src/backends/meta-gles3.c +++ b/src/backends/meta-gles3.c @@ -127,7 +127,7 @@ meta_gles3_has_extensions (MetaGles3 *gles3, if (!extensions_str) { g_warning ("Failed to get string: %s", get_gl_error_str (glGetError ())); - return FALSE; + extensions_str = ""; } va_start (var_args, first_extension);