Index: ui/gl/gl_surface_glx.cc |
diff --git a/ui/gl/gl_surface_glx.cc b/ui/gl/gl_surface_glx.cc |
index 3f82e271f0fa313da3823e7850334c87921c17fb..49ff041150750938bae510d6bb59539e182be88f 100644 |
--- a/ui/gl/gl_surface_glx.cc |
+++ b/ui/gl/gl_surface_glx.cc |
@@ -34,6 +34,7 @@ |
namespace { |
Display* g_display = nullptr; |
+const char* g_glx_extensions = nullptr; |
bool g_glx_context_create = false; |
bool g_glx_create_context_robustness_supported = false; |
bool g_glx_texture_from_pixmap_supported = false; |
@@ -348,6 +349,7 @@ |
return false; |
} |
+ g_glx_extensions = glXQueryExtensionsString(g_display, 0); |
g_glx_context_create = |
HasGLXExtension("GLX_ARB_create_context"); |
g_glx_create_context_robustness_supported = |
@@ -369,7 +371,7 @@ |
// static |
const char* GLSurfaceGLX::GetGLXExtensions() { |
- return glXQueryExtensionsString(g_display, 0); |
+ return g_glx_extensions; |
} |
// static |