From f19ff885f41185055da3201abeb1070f4e043f1b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 3 Jan 2018 18:23:04 +0100 Subject: [PATCH] Cleanups --- gfx/common/d3d_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/common/d3d_common.c b/gfx/common/d3d_common.c index 1d91dd4382..9f24d75011 100644 --- a/gfx/common/d3d_common.c +++ b/gfx/common/d3d_common.c @@ -255,10 +255,12 @@ bool d3d_vertex_declaration_new(LPDIRECT3DDEVICE dev, #if defined(__cplusplus) if (SUCCEEDED(dev->CreateVertexDeclaration(vertex_elements, (IDirect3DVertexDeclaration9**)vertex_decl))) + return true; #else if (SUCCEEDED(IDirect3DDevice9_CreateVertexDeclaration(dev, vertex_elements, (IDirect3DVertexDeclaration9**)vertex_decl))) -#endif return true; +#endif + #endif return false; }