mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1145585 - Hold a ref to the right texture. r=jmuizelaar
--HG-- extra : rebase_source : e000ff00ef1a25e040572a21775cfbf0efb32485
This commit is contained in:
parent
086ebaa957
commit
abe801b442
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user