Fixed MT#06417

- cache texture/surface were not released when render target was destructed
This commit is contained in:
Jezze 2016-10-30 22:22:24 +01:00
parent d01a09c6f6
commit c4b8e48b57

View File

@ -2579,6 +2579,12 @@ d3d_render_target::~d3d_render_target()
if (target_surface[index] != nullptr)
target_surface[index]->Release();
}
if (cache_texture != nullptr)
cache_texture->Release();
if (cache_surface != nullptr)
cache_surface->Release();
}