mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1178601 - Don't crash on incomplete FB. - r=jrmuizel
This commit is contained in:
parent
a2974de653
commit
f16628f247
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user