Add another HAVE_D3D8 conditional

This commit is contained in:
twinaphex 2018-01-03 13:57:01 +01:00
parent 777e96f2ea
commit bf1f201e5a

View File

@ -323,6 +323,8 @@ void d3d_vertex_buffer_free(void *vertex_data, void *vertex_declaration)
LPDIRECT3DVERTEXBUFFER buf = (LPDIRECT3DVERTEXBUFFER)vertex_data;
#if defined(HAVE_D3D9) && !defined(__cplusplus)
IDirect3DVertexBuffer9_Release(buf);
#elif defined(HAVE_D3D8) && !defined(__cplusplus)
IDirect3DVertexBuffer8_Release(buf);
#else
buf->Release();
#endif