Commit dd18edce authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: correct test buffer check

There can be situations where the surface fits but there's no test buffer yet

(cherry picked from commit 1f92dc5e)
parent b3445d0b
Pipeline #241082 failed with stage
in 16 minutes and 59 seconds
......@@ -68,7 +68,7 @@ QRegion EglGbmLayer::currentDamage() const
bool EglGbmLayer::checkTestBuffer()
if (!m_surface.doesSurfaceFit(m_pipeline->bufferSize(), m_pipeline->formats())) {
if (!m_currentBuffer || !m_surface.doesSurfaceFit(m_pipeline->bufferSize(), m_pipeline->formats())) {
const auto buffer = m_surface.renderTestBuffer(m_pipeline->bufferSize(), m_pipeline->formats());
if (!buffer) {
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment