d3d11: Fix bug creating static vertex buffers

The vertex data wasn't getting properly freed, it was actually setting
the parameter itself to null for some reason.
This commit is contained in:
jp9000
2014-06-14 23:37:32 -07:00
parent 9d66c96299
commit f37c510f10
2 changed files with 4 additions and 4 deletions

View File

@@ -169,6 +169,8 @@ static inline D3D11_PRIMITIVE_TOPOLOGY ConvertGSTopology(gs_draw_mode mode)
struct VBDataPtr {
vb_data *data;
inline void Clear() {vbdata_destroy(data); data = nullptr;}
inline VBDataPtr(vb_data *data) : data(data) {}
inline ~VBDataPtr() {vbdata_destroy(data);}
};