We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c207d commit 3d1135eCopy full SHA for 3d1135e
src/d3d9/d3d9_swapchain.cpp
@@ -238,8 +238,18 @@ namespace dxvk {
238
SWP_NOACTIVATE | SWP_NOZORDER | SWP_ASYNCWINDOWPOS);
239
}
240
else {
241
- if (IsWindowVisible(window))
+ if (IsWindowVisible(window)) {
242
ShowWindow(window, SW_MINIMIZE);
243
+ // Some games (Unreal Engine) can manage to recreate the swapchain during window procs
244
+ // Grab the swapchain again to ensure it is still valid
245
+ std::lock_guard lock(g_windowProcMapMutex);
246
+
247
+ auto it = g_windowProcMap.find(window);
248
+ if (it != g_windowProcMap.end())
249
+ windowData = it->second;
250
+ else
251
+ return 0;
252
+ }
253
254
255
0 commit comments