Bug 1062475 - [Camera] Camera button highlight appears as a square. r=sotaro

This commit is contained in:
chiajung hung 2014-10-20 02:49:00 -04:00
parent 0d6558083e
commit ec4f90d64c

View File

@ -191,8 +191,9 @@ ImageClientSingle::UpdateImageInternal(ImageContainer* aContainer,
if (image->AsSharedImage() && image->AsSharedImage()->GetTextureClient(this)) {
// fast path: no need to allocate and/or copy image data
RefPtr<TextureClient> texture = image->AsSharedImage()->GetTextureClient(this);
autoRemoveTexture.mTexture = mFrontBuffer;
if (texture != mFrontBuffer) {
autoRemoveTexture.mTexture = mFrontBuffer;
}
mFrontBuffer = texture;
if (!AddTextureClient(texture)) {
mFrontBuffer = nullptr;