Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/glxbackend.cpp
Show First 20 Lines • Show All 167 Lines • ▼ Show 20 Line(s) | 152 | { | |||
---|---|---|---|---|---|
168 | if (!initRenderingContext()) { | 168 | if (!initRenderingContext()) { | ||
169 | setFailed(QStringLiteral("Could not initialize rendering context")); | 169 | setFailed(QStringLiteral("Could not initialize rendering context")); | ||
170 | return; | 170 | return; | ||
171 | } | 171 | } | ||
172 | 172 | | |||
173 | // Initialize OpenGL | 173 | // Initialize OpenGL | ||
174 | GLPlatform *glPlatform = GLPlatform::instance(); | 174 | GLPlatform *glPlatform = GLPlatform::instance(); | ||
175 | glPlatform->detect(GlxPlatformInterface); | 175 | glPlatform->detect(GlxPlatformInterface); | ||
176 | if (GLPlatform::instance()->driver() == Driver_Intel) | | |||
177 | options->setUnredirectFullscreen(false); // bug #252817 | | |||
178 | options->setGlPreferBufferSwap(options->glPreferBufferSwap()); // resolve autosetting | 176 | options->setGlPreferBufferSwap(options->glPreferBufferSwap()); // resolve autosetting | ||
179 | if (options->glPreferBufferSwap() == Options::AutoSwapStrategy) | 177 | if (options->glPreferBufferSwap() == Options::AutoSwapStrategy) | ||
180 | options->setGlPreferBufferSwap('e'); // for unknown drivers - should not happen | 178 | options->setGlPreferBufferSwap('e'); // for unknown drivers - should not happen | ||
181 | glPlatform->printResults(); | 179 | glPlatform->printResults(); | ||
182 | initGL(GlxPlatformInterface); | 180 | initGL(GlxPlatformInterface); | ||
183 | 181 | | |||
184 | // Check whether certain features are supported | 182 | // Check whether certain features are supported | ||
185 | m_haveMESACopySubBuffer = hasGLExtension(QByteArrayLiteral("GLX_MESA_copy_sub_buffer")); | 183 | m_haveMESACopySubBuffer = hasGLExtension(QByteArrayLiteral("GLX_MESA_copy_sub_buffer")); | ||
▲ Show 20 Lines • Show All 696 Lines • Show Last 20 Lines |