mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 18:15:28 -04:00
Direct3D9Ex: Fix stuck at 1x1 resolution after unminimising
This commit is contained in:
parent
d1ad64ee08
commit
e02fbf518f
@ -775,7 +775,11 @@ static void UpdateSwapchain(const char* reason) {
|
||||
/* Try to use ResetEx first to avoid resetting resources */
|
||||
IDirect3DDevice9Ex* dev = (IDirect3DDevice9Ex*)device;
|
||||
D3D9_FillPresentArgs(&args);
|
||||
if (!IDirect3DDevice9Ex_ResetEx(dev, &args, NULL)) return;
|
||||
|
||||
if (!IDirect3DDevice9Ex_ResetEx(dev, &args, NULL)) {
|
||||
/* Fast path succeeded */
|
||||
D3D9_UpdateCachedDimensions(); return;
|
||||
}
|
||||
}
|
||||
Gfx_LoseContext(reason);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user