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 28e7ff1af4
commit d8ffd23931

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