mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +00:00
(image_xdk1.c) Use d3d_vertex_buffer_new
This commit is contained in:
parent
c4b35fb00d
commit
138541f6cc
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user