backends/drm: fix reallocation check

When no modifiers are used at all, we shouldn't check them.

BUG: 448557
master
Xaver Hugl 3 years ago
parent e0a8fa778e
commit 50c167c94b

@ -549,7 +549,8 @@ bool EglGbmBackend::doesRenderFit(const Output &output, const Output::RenderData
return false;
}
if (!output.output->isFormatSupported(render.gbmSurface->format())
|| output.output->supportedModifiers(render.gbmSurface->format()) != render.gbmSurface->modifiers()) {
|| (!render.gbmSurface->modifiers().isEmpty()
&& output.output->supportedModifiers(render.gbmSurface->format()) != render.gbmSurface->modifiers())) {
return false;
}
QSize surfaceSize = output.output->bufferSize();

Loading…
Cancel
Save