From a79772322b9e81979026850fed985dcdb0312d33 Mon Sep 17 00:00:00 2001 From: Alpyne Date: Fri, 21 Apr 2023 23:01:39 -0700 Subject: [PATCH] [d3d9] Initialize m_mapFlags to 0 Can sometimes get weird default values in there. --- src/d3d9/d3d9_common_buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_common_buffer.h b/src/d3d9/d3d9_common_buffer.h index 8ddb0d61..782be427 100644 --- a/src/d3d9/d3d9_common_buffer.h +++ b/src/d3d9/d3d9_common_buffer.h @@ -225,7 +225,7 @@ namespace dxvk { D3D9DeviceEx* m_parent; const D3D9_BUFFER_DESC m_desc; - DWORD m_mapFlags; + DWORD m_mapFlags = 0; bool m_needsReadback = false; D3D9_COMMON_BUFFER_MAP_MODE m_mapMode;