mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 06:31:57 -07:00
renderer: fix missing null checks to prevent crashes (#9332)
This commit is contained in:
@@ -1196,7 +1196,9 @@ void CHyprRenderer::renderMonitor(PHLMONITOR pMonitor) {
|
|||||||
|
|
||||||
pMonitor->tearingState.activelyTearing = shouldTear;
|
pMonitor->tearingState.activelyTearing = shouldTear;
|
||||||
|
|
||||||
if ((*PDIRECTSCANOUT == 1 || (*PDIRECTSCANOUT == 2 && pMonitor->activeWorkspace->getFullscreenWindow()->getContentType() == CONTENT_TYPE_GAME)) && !shouldTear) {
|
if ((*PDIRECTSCANOUT == 1 ||
|
||||||
|
(*PDIRECTSCANOUT == 2 && pMonitor->activeWorkspace->getFullscreenWindow() && pMonitor->activeWorkspace->getFullscreenWindow()->getContentType() == CONTENT_TYPE_GAME)) &&
|
||||||
|
!shouldTear) {
|
||||||
if (pMonitor->attemptDirectScanout()) {
|
if (pMonitor->attemptDirectScanout()) {
|
||||||
return;
|
return;
|
||||||
} else if (!pMonitor->lastScanout.expired()) {
|
} else if (!pMonitor->lastScanout.expired()) {
|
||||||
|
Reference in New Issue
Block a user