1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 05:52:11 +01:00

[dxgi] Fixed nonsense compiler warning with some GCC versions

This commit is contained in:
Philip Rebohle 2018-07-14 11:09:02 +02:00
parent f7691d4db7
commit a728884742

View File

@ -127,7 +127,7 @@ namespace dxvk {
UINT targetHeight = pModeToMatch->Height; UINT targetHeight = pModeToMatch->Height;
if (targetWidth == 0 || targetHeight == 0) { if (targetWidth == 0 || targetHeight == 0) {
DXGI_MODE_DESC activeMode; DXGI_MODE_DESC activeMode = { };
GetDisplayMode(&activeMode, ENUM_CURRENT_SETTINGS); GetDisplayMode(&activeMode, ENUM_CURRENT_SETTINGS);
targetWidth = activeMode.Width; targetWidth = activeMode.Width;