fix screenshot mem usage + fix backstage not starting after being stopped once

This commit is contained in:
KingKDot
2026-08-01 00:46:03 -05:00
parent b68a306708
commit 7b249457a1
18 changed files with 675 additions and 99 deletions
@@ -139,11 +139,11 @@ func CleanupVirtualMode() {
virtualDupState.mu.Unlock()
ResetPrevbackstage()
resetH264D3D11TextureEncoder("backstage")
captureMu.Lock()
backstageCaptureMu.Lock()
backstageFreeCapCache()
backstageClearWindowCache()
virtualCapImg = nil
captureMu.Unlock()
backstageCaptureMu.Unlock()
virtualInputMu.Lock()
virtualShiftDown = false
@@ -2393,8 +2393,8 @@ var (
)
func VirtualCaptureDisplayFallback() (*image.RGBA, error) {
captureMu.Lock()
defer captureMu.Unlock()
backstageCaptureMu.Lock()
defer backstageCaptureMu.Unlock()
setDPIAware()