From 0ece7015e731696b9cab55a6a7bddbca08fef5ee Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 3 Jan 2018 13:59:42 +0100 Subject: [PATCH] C buildfix --- gfx/common/d3d_common.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gfx/common/d3d_common.c b/gfx/common/d3d_common.c index 72c83b9f49..998e92111f 100644 --- a/gfx/common/d3d_common.c +++ b/gfx/common/d3d_common.c @@ -221,9 +221,12 @@ void d3d_vertex_declaration_free(void *data) #elif defined(HAVE_D3D9) && !defined(__cplusplus) IDirect3DVertexDeclaration9_Release((LPDIRECT3DVERTEXDECLARATION)data); #else - LPDIRECT3DVERTEXDECLARATION vertex_decl = (LPDIRECDT3DVERTEXDECLARATION)data; - if (vertex_decl) - vertex_decl->Release(); + { + LPDIRECT3DVERTEXDECLARATION vertex_decl = + (LPDIRECDT3DVERTEXDECLARATION)data; + if (vertex_decl) + vertex_decl->Release(); + } #endif }