From 138541f6cc39cbeff5a009abb71f73793f0940f4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 13 Sep 2014 17:58:38 +0200 Subject: [PATCH] (image_xdk1.c) Use d3d_vertex_buffer_new --- gfx/image/image_xdk1.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gfx/image/image_xdk1.c b/gfx/image/image_xdk1.c index b667a0ef66..5759c3b09a 100644 --- a/gfx/image/image_xdk1.c +++ b/gfx/image/image_xdk1.c @@ -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 */ - if (FAILED(d3d_create_vertex_buffer(d3d->dev, 4 * sizeof(Vertex), - D3DUSAGE_WRITEONLY, D3DFVF_CUSTOMVERTEX, - D3DPOOL_MANAGED, out_img->vertex_buf, NULL))) + out_img->vertex_buf = (LPDIRECT3DVERTEXBUFFER)d3d_vertex_buffer_new( + d3d->dev, 4 * sizeof(Vertex), D3DUSAGE_WRITEONLY, D3DFVF_CUSTOMVERTEX, + D3DPOOL_MANAGED, NULL); + + if (!out_img->vertex_buf) { RARCH_ERR("Error occurred during CreateVertexBuffer().\n"); out_img->pixels->Release();