Skip to content

Commit

Permalink
Fixed MT#06417
Browse files Browse the repository at this point in the history
- cache texture/surface were not released when render target was destructed
  • Loading branch information
ImJezze committed Oct 30, 2016
1 parent d01a09c commit c4b8e48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/osd/modules/render/drawd3d.cpp
Expand Up @@ -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();
}


Expand Down

0 comments on commit c4b8e48

Please sign in to comment.