1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[dxgi] Initialize size of DEVMODEW structure

The documentation says we should do this.
This commit is contained in:
Joshua Ashton 2019-10-05 22:30:02 +01:00 committed by Philip Rebohle
parent 1117daec24
commit 6d0757520b

View File

@ -263,7 +263,8 @@ namespace dxvk {
// Walk over all modes that the display supports and
// return those that match the requested format etc.
DEVMODEW devMode;
DEVMODEW devMode = { };
devMode.dmSize = sizeof(DEVMODEW);
uint32_t srcModeId = 0;
uint32_t dstModeId = 0;