From ebe71e3ec4e62cb094a245ed2477c108142d3c11 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 1 Sep 2014 10:05:03 -0700 Subject: [PATCH] d3d: Properly initialize cullmode. --- GPU/Directx9/helper/dx_state.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GPU/Directx9/helper/dx_state.h b/GPU/Directx9/helper/dx_state.h index 0fb2e086a0..653d134e86 100644 --- a/GPU/Directx9/helper/dx_state.h +++ b/GPU/Directx9/helper/dx_state.h @@ -323,6 +323,9 @@ private: class CullMode { DWORD cull; public: + CullMode() : cull (D3DCULL_NONE) { + } + inline void set(int wantcull, int cullmode) { DWORD newcull; if (!wantcull) {