Bug 1178601 - Don't crash on incomplete FB. - r=jrmuizel

This commit is contained in:
Jeff Gilbert 2015-09-24 14:26:20 -07:00
parent a2974de653
commit f16628f247

View File

@ -906,10 +906,8 @@ GLBlitHelper::BlitImageToTexture(layers::Image* srcImage,
OriginPos destOrigin)
{
ScopedFramebufferForTexture autoFBForTex(mGL, destTex, destTarget);
if (!autoFBForTex.IsComplete()) {
MOZ_CRASH("ScopedFramebufferForTexture failed.");
}
if (!autoFBForTex.IsComplete())
return false;
return BlitImageToFramebuffer(srcImage, destSize, autoFBForTex.FB(), destOrigin);
}