summaryrefslogtreecommitdiffstats
path: root/src/core/ozone/gl_surface_glx_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ozone/gl_surface_glx_qt.cpp')
-rw-r--r--src/core/ozone/gl_surface_glx_qt.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/ozone/gl_surface_glx_qt.cpp b/src/core/ozone/gl_surface_glx_qt.cpp
index 51b0f58b0..eebefa59b 100644
--- a/src/core/ozone/gl_surface_glx_qt.cpp
+++ b/src/core/ozone/gl_surface_glx_qt.cpp
@@ -41,8 +41,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#if defined(USE_X11)
-
#include "gl_context_qt.h"
#include "ozone/gl_surface_glx_qt.h"
#include "ui/gl/gl_bindings.h"
@@ -126,9 +124,9 @@ bool GLSurfaceGLXQt::InitializeOneOff()
return false;
}
- g_config = GLContextHelper::getXConfig();
+ g_config = GLContextHelper::getGlXConfig();
if (!g_config) {
- LOG(ERROR) << "GLContextHelper::getXConfig() failed.";
+ LOG(ERROR) << "GLContextHelper::getGlxConfig() failed.";
return false;
}
@@ -156,7 +154,7 @@ bool GLSurfaceGLXQt::InitializeExtensionSettingsOneOff()
Display* display = static_cast<Display*>(g_display);
GLSurfaceQt::g_extensions = glXQueryExtensionsString(display, 0);
- g_driver_glx.InitializeExtensionBindings();
+ g_driver_glx.InitializeExtensionBindings(g_extensions);
return true;
}
@@ -210,4 +208,3 @@ void* GLSurfaceGLXQt::GetHandle()
} //namespace gl
-#endif // defined(USE_X11)