mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 23:06:40 +00:00
(render_chain_xdk) Use wrappers for freeing textures and vertex
buffers
This commit is contained in:
parent
91cc31dc98
commit
548d9fea6c
@ -9,11 +9,9 @@ static void renderchain_clear(void *data)
|
||||
{
|
||||
d3d_video_t *d3d = (d3d_video_t*)data;
|
||||
|
||||
if (d3d->tex)
|
||||
d3d->tex->Release();
|
||||
d3d_texture_free(d3d->tex);
|
||||
d3d->tex = NULL;
|
||||
if (d3d->vertex_buf)
|
||||
d3d->vertex_buf->Release();
|
||||
d3d_vertex_buffer_free(d3d->vertex_buf);
|
||||
d3d->vertex_buf = NULL;
|
||||
|
||||
#ifdef _XBOX360
|
||||
@ -91,7 +89,6 @@ static bool renderchain_create_first_pass(void *data,
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
static bool renderchain_init(void *data, const video_info_t *info)
|
||||
{
|
||||
d3d_video_t *chain = (d3d_video_t*)data;
|
||||
|
Loading…
Reference in New Issue
Block a user