From e9e77fbf77f86a0f24f8e0f1a78802bc6e374445 Mon Sep 17 00:00:00 2001 From: Kuanlan Date: Tue, 25 May 2021 13:52:34 +0800 Subject: [PATCH] Backends: DX9: programmable rendering pipeline: 7.zero mvp mat --- backends/imgui_impl_dx9.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_dx9.cpp b/backends/imgui_impl_dx9.cpp index f272d49e73d1..064a57e7afeb 100644 --- a/backends/imgui_impl_dx9.cpp +++ b/backends/imgui_impl_dx9.cpp @@ -203,7 +203,7 @@ static int g_VertexBufferSize = 4096; static int g_IndexBufferSize = 8192; // Direct3D9 state static IDirect3DStateBlock9* g_pd3dState = NULL; -static D3DMATRIX g_LastMVP[3]; +static D3DMATRIX g_LastMVP[3] = {}; // Direct3D9 programmable rendering pipeline data static bool g_IsShaderPipeline = false; static IDirect3DVertexDeclaration9* g_pInputLayout = NULL;