Changeset View
Changeset View
Standalone View
Standalone View
scene_opengl.cpp
Show First 20 Lines • Show All 422 Lines • ▼ Show 20 Line(s) | 394 | { | |||
---|---|---|---|---|---|
423 | if (options->isGlStrictBindingFollowsDriver()) { | 423 | if (options->isGlStrictBindingFollowsDriver()) { | ||
424 | options->setGlStrictBinding(!glPlatform->supports(LooseBinding)); | 424 | options->setGlStrictBinding(!glPlatform->supports(LooseBinding)); | ||
425 | } | 425 | } | ||
426 | 426 | | |||
427 | bool haveSyncObjects = glPlatform->isGLES() | 427 | bool haveSyncObjects = glPlatform->isGLES() | ||
428 | ? hasGLVersion(3, 0) | 428 | ? hasGLVersion(3, 0) | ||
429 | : hasGLVersion(3, 2) || hasGLExtension("GL_ARB_sync"); | 429 | : hasGLVersion(3, 2) || hasGLExtension("GL_ARB_sync"); | ||
430 | 430 | | |||
431 | if (hasGLExtension("GL_EXT_x11_sync_object") && haveSyncObjects) { | 431 | if (hasGLExtension("GL_EXT_x11_sync_object") && haveSyncObjects && kwinApp()->operationMode() == Application::OperationModeX11) { | ||
432 | const QByteArray useExplicitSync = qgetenv("KWIN_EXPLICIT_SYNC"); | 432 | const QByteArray useExplicitSync = qgetenv("KWIN_EXPLICIT_SYNC"); | ||
433 | 433 | | |||
434 | if (useExplicitSync != "0") { | 434 | if (useExplicitSync != "0") { | ||
435 | qCDebug(KWIN_CORE) << "Initializing fences for synchronization with the X command stream"; | 435 | qCDebug(KWIN_CORE) << "Initializing fences for synchronization with the X command stream"; | ||
436 | m_syncManager = new SyncManager; | 436 | m_syncManager = new SyncManager; | ||
437 | } else { | 437 | } else { | ||
438 | qCDebug(KWIN_CORE) << "Explicit synchronization with the X command stream disabled by environment variable"; | 438 | qCDebug(KWIN_CORE) << "Explicit synchronization with the X command stream disabled by environment variable"; | ||
439 | } | 439 | } | ||
▲ Show 20 Lines • Show All 2171 Lines • Show Last 20 Lines |