Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/opengl/scene_opengl.cpp
Show First 20 Lines • Show All 442 Lines • ▼ Show 20 Line(s) | 427 | auto callback = [](GLenum source, GLenum type, GLuint id, | |||
---|---|---|---|---|---|
443 | case GL_DEBUG_TYPE_OTHER: | 443 | case GL_DEBUG_TYPE_OTHER: | ||
444 | // at least the nvidia driver seems prone to end up with invalid VBOs after | 444 | // at least the nvidia driver seems prone to end up with invalid VBOs after | ||
445 | // transferring them between system heap and VRAM | 445 | // transferring them between system heap and VRAM | ||
446 | // so we re-init them whenever this happens (typically when switching VT, resuming | 446 | // so we re-init them whenever this happens (typically when switching VT, resuming | ||
447 | // from STR and XRandR events - #344326 | 447 | // from STR and XRandR events - #344326 | ||
448 | if (strstr(message, "Buffer detailed info:") && strstr(message, "has been updated")) | 448 | if (strstr(message, "Buffer detailed info:") && strstr(message, "has been updated")) | ||
449 | scheduleVboReInit(); | 449 | scheduleVboReInit(); | ||
450 | // fall through! for general message printing | 450 | // fall through! for general message printing | ||
451 | #if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)) | | |||
452 | Q_FALLTHROUGH(); | 451 | Q_FALLTHROUGH(); | ||
453 | #endif | | |||
454 | case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR: | 452 | case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR: | ||
455 | case GL_DEBUG_TYPE_PORTABILITY: | 453 | case GL_DEBUG_TYPE_PORTABILITY: | ||
456 | case GL_DEBUG_TYPE_PERFORMANCE: | 454 | case GL_DEBUG_TYPE_PERFORMANCE: | ||
457 | default: | 455 | default: | ||
458 | qCDebug(KWIN_OPENGL, "%#x: %.*s", id, length, message); | 456 | qCDebug(KWIN_OPENGL, "%#x: %.*s", id, length, message); | ||
459 | break; | 457 | break; | ||
460 | } | 458 | } | ||
461 | }; | 459 | }; | ||
▲ Show 20 Lines • Show All 2001 Lines • Show Last 20 Lines |