diff --git a/src/backends/drm/drm_egl_layer_surface.cpp b/src/backends/drm/drm_egl_layer_surface.cpp index ceb101fbf4..0e416a0279 100644 --- a/src/backends/drm/drm_egl_layer_surface.cpp +++ b/src/backends/drm/drm_egl_layer_surface.cpp @@ -59,7 +59,7 @@ void EglGbmLayerSurface::destroyResources() std::optional EglGbmLayerSurface::startRendering(const QSize &bufferSize, DrmPlane::Transformations renderOrientation, DrmPlane::Transformations bufferOrientation, const QMap> &formats, BufferTarget target) { - if (!checkGbmSurface(bufferSize, formats, target == BufferTarget::Linear)) { + if (!checkGbmSurface(bufferSize, formats, target == BufferTarget::Linear || target == BufferTarget::Dumb)) { return std::nullopt; } if (!m_gbmSurface->makeContextCurrent()) {