This commit is contained in:
twinaphex 2018-01-03 18:23:04 +01:00
parent 7b8299bbd7
commit f19ff885f4

View File

@ -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;
}