mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 708136 - Don't teardown GL objects if teardown's makecurrent fails - r=bjacob
This commit is contained in:
parent
4dfa35563b
commit
2b71769566
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user