mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 708136 - Don't teardown GL objects if teardown's makecurrent fails - r=bjacob
This commit is contained in:
parent
46073c5af4
commit
8fd1db572f
@ -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…
Reference in New Issue
Block a user