Bug 1016540 - GrallocTextureSource::DeallocateDeviceData must assert that it has a compositor, rather than a gl context. r=sotaro

This commit is contained in:
Nicolas Silva
2014-10-07 10:45:04 +02:00
parent 2c35bc3a53
commit a849e8790f
2 changed files with 2 additions and 2 deletions

View File

@@ -295,7 +295,7 @@ void
GrallocTextureSourceOGL::DeallocateDeviceData()
{
if (mEGLImage) {
MOZ_ASSERT(gl());
MOZ_ASSERT(mCompositor);
if (!gl() || !gl()->MakeCurrent()) {
return;
}