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.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/ozone/gl_surface_glx_qt.cpp b/src/core/ozone/gl_surface_glx_qt.cpp
index 188a92729..4f4bd1371 100644
--- a/src/core/ozone/gl_surface_glx_qt.cpp
+++ b/src/core/ozone/gl_surface_glx_qt.cpp
@@ -45,7 +45,6 @@
#include "ozone/gl_surface_glx_qt.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_surface_glx.h"
-#include "ui/gfx/x/x11_types.h"
namespace gl {
@@ -58,6 +57,7 @@ GLSurfaceGLXQt::~GLSurfaceGLXQt()
void GLSurfaceGLX::ShutdownOneOff()
{
+ s_initialized = false;
}
bool GLSurfaceGLX::IsCreateContextSupported()
@@ -120,8 +120,6 @@ bool GLSurfaceGLXQt::InitializeOneOff()
if (s_initialized)
return true;
- XInitThreads();
-
g_display = GLContextHelper::getXDisplay();
if (!g_display) {
LOG(ERROR) << "GLContextHelper::getXDisplay() failed.";