diff --git a/src/dxgi/dxgi_swapchain.cpp b/src/dxgi/dxgi_swapchain.cpp index e7cd7651..fef525be 100644 --- a/src/dxgi/dxgi_swapchain.cpp +++ b/src/dxgi/dxgi_swapchain.cpp @@ -713,7 +713,7 @@ namespace dxvk { "DXGI: Failed to query closest mode:", "\n Format: ", preferredMode.Format, "\n Mode: ", preferredMode.Width, "x", preferredMode.Height, - "@", preferredMode.RefreshRate.Numerator / preferredMode.RefreshRate.Denominator)); + "@", preferredMode.RefreshRate.Numerator / std::max(preferredMode.RefreshRate.Denominator, 1u))); return hr; }