From a539a6512bb152fc4683e3d2b592700abed62805 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 17 Feb 2016 02:25:24 +0100 Subject: [PATCH] (D3D) Buildfix --- gfx/d3d/d3d.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 378e804ead..0f320a71aa 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -1742,14 +1742,14 @@ static uintptr_t d3d_load_texture(void *video_data, void *data, return id; } -static void d3d_unload_texture(void *data, uintptr_t *id) +static void d3d_unload_texture(void *data, uintptr_t id) { - LPDIRECT3DTEXTURE texid = (LPDIRECT3DTEXTURE)id; + LPDIRECT3DTEXTURE texid; if (!id) return; + texid = (LPDIRECT3DTEXTURE)id; d3d_texture_free(texid); - *id = 0; } static const video_poke_interface_t d3d_poke_interface = {