Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/opengl/scene_opengl.cpp
Show First 20 Lines • Show All 331 Lines • ▼ Show 20 Line(s) | 329 | if (!glPlatform->isGLES() && !hasGLExtension(QByteArrayLiteral("GL_ARB_texture_non_power_of_two")) | |||
---|---|---|---|---|---|
332 | init_ok = false; | 332 | init_ok = false; | ||
333 | return; // error | 333 | return; // error | ||
334 | } | 334 | } | ||
335 | if (glPlatform->isMesaDriver() && glPlatform->mesaVersion() < kVersionNumber(10, 0)) { | 335 | if (glPlatform->isMesaDriver() && glPlatform->mesaVersion() < kVersionNumber(10, 0)) { | ||
336 | qCCritical(KWIN_OPENGL) << "KWin requires at least Mesa 10.0 for OpenGL compositing."; | 336 | qCCritical(KWIN_OPENGL) << "KWin requires at least Mesa 10.0 for OpenGL compositing."; | ||
337 | init_ok = false; | 337 | init_ok = false; | ||
338 | return; | 338 | return; | ||
339 | } | 339 | } | ||
340 | if (!glPlatform->isGLES() && !m_backend->isSurfaceLessContext()) { | | |||
341 | glDrawBuffer(GL_BACK); | | |||
342 | } | | |||
343 | 340 | | |||
344 | m_debug = qstrcmp(qgetenv("KWIN_GL_DEBUG"), "1") == 0; | 341 | m_debug = qstrcmp(qgetenv("KWIN_GL_DEBUG"), "1") == 0; | ||
345 | initDebugOutput(); | 342 | initDebugOutput(); | ||
346 | 343 | | |||
347 | // set strict binding | 344 | // set strict binding | ||
348 | if (options->isGlStrictBindingFollowsDriver()) { | 345 | if (options->isGlStrictBindingFollowsDriver()) { | ||
349 | options->setGlStrictBinding(!glPlatform->supports(LooseBinding)); | 346 | options->setGlStrictBinding(!glPlatform->supports(LooseBinding)); | ||
350 | } | 347 | } | ||
▲ Show 20 Lines • Show All 2281 Lines • Show Last 20 Lines |