зеркало из https://github.com/mozilla/gecko-dev.git
Fix not deallocating device data after changing OGL compositors. (bug 1350259, r=mattwoodrow)
--HG-- extra : rebase_source : 975ae741669600dde85ea7030252ba738c419e61
This commit is contained in:
Родитель
acc4241b37
Коммит
9b33134098
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче