зеркало из https://github.com/mozilla/pjs.git
Bug 708136 - Don't teardown GL objects if teardown's makecurrent fails - r=bjacob
This commit is contained in:
Родитель
dcf02822c1
Коммит
83cacf3533
|
@ -1748,13 +1748,16 @@ GLContext::MarkDestroyed()
|
|||
if (IsDestroyed())
|
||||
return;
|
||||
|
||||
MakeCurrent();
|
||||
DeleteOffscreenFBOs();
|
||||
if (MakeCurrent()) {
|
||||
DeleteOffscreenFBOs();
|
||||
|
||||
fDeleteProgram(mBlitProgram);
|
||||
mBlitProgram = 0;
|
||||
fDeleteFramebuffers(1, &mBlitFramebuffer);
|
||||
mBlitFramebuffer = 0;
|
||||
fDeleteProgram(mBlitProgram);
|
||||
mBlitProgram = 0;
|
||||
fDeleteFramebuffers(1, &mBlitFramebuffer);
|
||||
mBlitFramebuffer = 0;
|
||||
} else {
|
||||
NS_WARNING("MakeCurrent() failed during MarkDestroyed! Skipping GL object teardown.");
|
||||
}
|
||||
|
||||
mSymbols.Zero();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче