Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/glxbackend.cpp
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | 107 | GlxBackend::GlxBackend(Display *display) | |||
---|---|---|---|---|---|
110 | , window(None) | 110 | , window(None) | ||
111 | , fbconfig(NULL) | 111 | , fbconfig(NULL) | ||
112 | , glxWindow(None) | 112 | , glxWindow(None) | ||
113 | , ctx(nullptr) | 113 | , ctx(nullptr) | ||
114 | , m_bufferAge(0) | 114 | , m_bufferAge(0) | ||
115 | , haveSwapInterval(false) | 115 | , haveSwapInterval(false) | ||
116 | , m_x11Display(display) | 116 | , m_x11Display(display) | ||
117 | { | 117 | { | ||
118 | // Force initialization of GLX integration in the Qt's xcb backend | ||||
graesslin: Could you please extend the comment on why we do that. | |||||
119 | // to make it call XESetWireToEvent callbacks, which is required | ||||
120 | // by Mesa when using DRI2. | ||||
121 | QOpenGLContext::supportsThreadedOpenGL(); | ||||
118 | } | 122 | } | ||
119 | 123 | | |||
120 | static bool gs_tripleBufferUndetected = true; | 124 | static bool gs_tripleBufferUndetected = true; | ||
121 | static bool gs_tripleBufferNeedsDetection = false; | 125 | static bool gs_tripleBufferNeedsDetection = false; | ||
122 | 126 | | |||
123 | GlxBackend::~GlxBackend() | 127 | GlxBackend::~GlxBackend() | ||
124 | { | 128 | { | ||
125 | if (isFailed()) { | 129 | if (isFailed()) { | ||
▲ Show 20 Lines • Show All 811 Lines • Show Last 20 Lines |
Could you please extend the comment on why we do that.