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) OriginPos destOrigin)
{ {
ScopedFramebufferForTexture autoFBForTex(mGL, destTex, destTarget); ScopedFramebufferForTexture autoFBForTex(mGL, destTex, destTarget);
if (!autoFBForTex.IsComplete())
if (!autoFBForTex.IsComplete()) { return false;
MOZ_CRASH("ScopedFramebufferForTexture failed.");
}
return BlitImageToFramebuffer(srcImage, destSize, autoFBForTex.FB(), destOrigin); return BlitImageToFramebuffer(srcImage, destSize, autoFBForTex.FB(), destOrigin);
} }