Bug 1145585 - Hold a ref to the right texture. r=jmuizelaar

--HG--
extra : rebase_source : e000ff00ef1a25e040572a21775cfbf0efb32485
This commit is contained in:
Matt Woodrow 2015-03-26 12:57:03 +13:00
parent 086ebaa957
commit abe801b442

View File

@ -184,9 +184,9 @@ TextureClientD3D11::~TextureClientD3D11()
{
if (mActor) {
if (mTexture) {
KeepUntilFullDeallocation(MakeUnique<TKeepAlive<ID3D10Texture2D>>(mTexture10));
} else if (mTexture10) {
KeepUntilFullDeallocation(MakeUnique<TKeepAlive<ID3D11Texture2D>>(mTexture));
} else if (mTexture10) {
KeepUntilFullDeallocation(MakeUnique<TKeepAlive<ID3D10Texture2D>>(mTexture10));
}
}
#ifdef DEBUG