зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1565583 - Handle missing mEGLSurface in DEBUG mode to avoid GL error, r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D37873 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4e4dbeff23
Коммит
6a432bbfd1
|
@ -76,6 +76,11 @@ bool RenderCompositorEGL::BeginFrame() {
|
|||
RenderThread::Get()->HandleWebRenderError(WebRenderError::NEW_SURFACE);
|
||||
}
|
||||
}
|
||||
if (mEGLSurface == EGL_NO_SURFACE) {
|
||||
gfxCriticalNote
|
||||
<< "We don't have EGLSurface to draw into. Called too early?";
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
if (!MakeCurrent()) {
|
||||
gfxCriticalNote << "Failed to make render context current, can't draw.";
|
||||
|
|
Загрузка…
Ссылка в новой задаче