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