Fix not deallocating device data after changing OGL compositors. (bug 1350259, r=mattwoodrow)

--HG--
extra : rebase_source : 975ae741669600dde85ea7030252ba738c419e61
This commit is contained in:
David Anderson 2017-03-27 14:03:59 -07:00
Родитель acc4241b37
Коммит 9b33134098
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -204,11 +204,10 @@ void
TextureImageTextureSourceOGL::SetTextureSourceProvider(TextureSourceProvider* aProvider)
{
GLContext* newGL = aProvider ? aProvider->GetGLContext() : nullptr;
if (!mGL) {
mGL = newGL;
} else if (mGL != newGL) {
if (!newGL || mGL != newGL) {
DeallocateDeviceData();
}
mGL = newGL;
}
gfx::IntSize