diff --git a/src/plugins/platforms/drm/dumb_swapchain.cpp b/src/plugins/platforms/drm/dumb_swapchain.cpp index a92a84563a..02173bb446 100644 --- a/src/plugins/platforms/drm/dumb_swapchain.cpp +++ b/src/plugins/platforms/drm/dumb_swapchain.cpp @@ -17,7 +17,7 @@ namespace KWin DumbSwapchain::DumbSwapchain(DrmGpu *gpu, const QSize &size) : m_size(size) { - for (int i = 0; i < 3; i++) { + for (int i = 0; i < 2; i++) { auto buffer = QSharedPointer::create(gpu, size); if (!buffer->bufferId()) { break; @@ -28,7 +28,7 @@ DumbSwapchain::DumbSwapchain(DrmGpu *gpu, const QSize &size) buffer->image()->fill(Qt::black); m_buffers << buffer; } - if (m_buffers.count() < 3) { + if (m_buffers.count() < 2) { qCWarning(KWIN_DRM) << "Failed to create dumb buffers for swapchain!"; m_buffers.clear(); }