mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-12-22 10:29:48 +01:00
parent
ae2bf9192d
commit
a23e9a9bdf
1 changed files with 5 additions and 5 deletions
|
@ -1419,11 +1419,6 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!backend->rendererState.renderer) {
|
|
||||||
backend->backend->log(AQ_LOG_ERROR, "drm: No renderer attached to backend");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
const auto& STATE = state->state();
|
const auto& STATE = state->state();
|
||||||
const uint32_t COMMITTED = STATE.committed;
|
const uint32_t COMMITTED = STATE.committed;
|
||||||
|
|
||||||
|
@ -1522,6 +1517,11 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
|
||||||
SP<CDRMFB> drmFB;
|
SP<CDRMFB> drmFB;
|
||||||
|
|
||||||
if (backend->shouldBlit()) {
|
if (backend->shouldBlit()) {
|
||||||
|
if (!backend->rendererState.renderer) {
|
||||||
|
backend->backend->log(AQ_LOG_ERROR, "drm: No renderer attached to backend when required for blitting");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
TRACE(backend->backend->log(AQ_LOG_TRACE, "drm: Backend requires blit, blitting"));
|
TRACE(backend->backend->log(AQ_LOG_TRACE, "drm: Backend requires blit, blitting"));
|
||||||
|
|
||||||
if (!mgpu.swapchain) {
|
if (!mgpu.swapchain) {
|
||||||
|
|
Loading…
Reference in a new issue