diff --git a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h index 639915aa..dd8dd7b8 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h +++ b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h @@ -2856,9 +2856,8 @@ namespace skyline::gpu::interconnect { // Depth/Stencil Render Target Setup auto depthRenderTargetView{GetDepthRenderTarget()}; - std::optional> depthTargetLock; if (depthRenderTargetView) { - depthTargetLock.emplace(*depthRenderTargetView); + std::scoped_lock lock(*depthRenderTargetView); executor.AttachTexture(depthRenderTargetView); }