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

@@ -136,8 +136,6 @@ gs_vertex_buffer::gs_vertex_buffer(device_t device, struct vb_data *data,
uvSizes.push_back(tverts->width * sizeof(float));
}
if (!dynamic) {
bfree(data);
data = NULL;
}
if (!dynamic)
vbd.Clear();
}