Bug 1079250 - SharedDataGonkOGL::DeleteTextureIfPresent to assert mCompositor rather than gl(). r=sotaro

This commit is contained in:
Nicolas Silva
2014-10-09 16:00:17 +02:00
parent 3d356760ff
commit 0efea2e28c

View File

@@ -247,7 +247,7 @@ void
TextureSharedDataGonkOGL::DeleteTextureIfPresent()
{
if (mTexture) {
MOZ_ASSERT(gl());
MOZ_ASSERT(mCompositor);
if (gl() && gl()->MakeCurrent()) {
gl()->fDeleteTextures(1, &mTexture);
}