Bug 1195110 - Check if GLContext is destroyed before freeing resources in CompositingRenderTargetOGL. r=jrmuizel

This commit is contained in:
Andrew Comminos 2015-08-18 16:01:58 -04:00
parent b9034d8dc4
commit 5d4f3c47d9

View File

@ -16,9 +16,10 @@ using namespace mozilla::gl;
CompositingRenderTargetOGL::~CompositingRenderTargetOGL()
{
mGL->MakeCurrent();
mGL->fDeleteTextures(1, &mTextureHandle);
mGL->fDeleteFramebuffers(1, &mFBO);
if (mGL->MakeCurrent()) {
mGL->fDeleteTextures(1, &mTextureHandle);
mGL->fDeleteFramebuffers(1, &mFBO);
}
}
void