mirror of https://github.com/PCSX2/pcsx2.git
GSdx: Fixed a memory leak in m_weavebob when changing interlacing modes (same thing that caused the m_merge leak -- I chose to delete instead of recycle since I doubt the texture would be useful for anything besides the 1-time interlacing setup, so no point cluttering the pool with it).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2051 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
81bdda2d27
commit
5b279e629d
|
@ -232,6 +232,7 @@ void GSDevice::Interlace(const GSVector2i& ds, int field, int mode, float yoffse
|
||||||
{
|
{
|
||||||
if(!m_weavebob || !(m_weavebob->GetSize() == ds))
|
if(!m_weavebob || !(m_weavebob->GetSize() == ds))
|
||||||
{
|
{
|
||||||
|
delete m_weavebob;
|
||||||
m_weavebob = CreateRenderTarget(ds.x, ds.y, false);
|
m_weavebob = CreateRenderTarget(ds.x, ds.y, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue