(XDK) Cleanup xdk_ctx_driver_destroy

This commit is contained in:
twinaphex 2013-01-19 11:53:48 +01:00
parent ce640ea777
commit f677c974fa

View File

@ -411,8 +411,17 @@ static void gfx_ctx_xdk_destroy(void)
{
xdk_d3d_video_t * d3d = (xdk_d3d_video_t*)driver.video_data;
if (d3d->d3d_render_device)
{
d3d->d3d_render_device->Release();
d3d->d3d_render_device = 0;
}
if (d3d->d3d_device)
{
d3d->d3d_device->Release();
d3d->d3d_device = 0;
}
}
static void gfx_ctx_xdk_input_driver(const input_driver_t **input, void **input_data) { }