From 36444b264f08cc20591154996fc7fd331bddde05 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 27 Apr 2020 13:52:57 +1000 Subject: [PATCH] GPU/D3D11: Restore API state after updating settings Should fix the debug layer warnings when adjusting resolution scale. --- src/core/gpu_hw_d3d11.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/gpu_hw_d3d11.cpp b/src/core/gpu_hw_d3d11.cpp index 3315b8c0a..017697d46 100644 --- a/src/core/gpu_hw_d3d11.cpp +++ b/src/core/gpu_hw_d3d11.cpp @@ -126,6 +126,7 @@ void GPU_HW_D3D11::UpdateSettings() CreateFramebuffer(); CreateStateObjects(); CompileShaders(); + RestoreGraphicsAPIState(); UpdateDisplay(); }