(image_xdk1.c) Use d3d_vertex_buffer_new

This commit is contained in:
twinaphex 2014-09-13 17:58:38 +02:00
parent c4b35fb00d
commit 138541f6cc

View File

@ -36,9 +36,11 @@ bool texture_image_load(struct texture_image *out_img, const char *path)
} }
/* create a vertex buffer for the quad that will display the texture */ /* create a vertex buffer for the quad that will display the texture */
if (FAILED(d3d_create_vertex_buffer(d3d->dev, 4 * sizeof(Vertex), out_img->vertex_buf = (LPDIRECT3DVERTEXBUFFER)d3d_vertex_buffer_new(
D3DUSAGE_WRITEONLY, D3DFVF_CUSTOMVERTEX, d3d->dev, 4 * sizeof(Vertex), D3DUSAGE_WRITEONLY, D3DFVF_CUSTOMVERTEX,
D3DPOOL_MANAGED, out_img->vertex_buf, NULL))) D3DPOOL_MANAGED, NULL);
if (!out_img->vertex_buf)
{ {
RARCH_ERR("Error occurred during CreateVertexBuffer().\n"); RARCH_ERR("Error occurred during CreateVertexBuffer().\n");
out_img->pixels->Release(); out_img->pixels->Release();