зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1779410
- Ensure SwapChainPresenter destructor is called before we access the front buffer. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D151732
This commit is contained in:
Родитель
41d7ccc557
Коммит
911d479aa2
|
@ -1058,6 +1058,7 @@ void WebGLContext::CopyToSwapChain(WebGLFramebuffer* const srcFb,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
// ColorSpace will need to be part of SwapChainOptions for DTWebgl.
|
// ColorSpace will need to be part of SwapChainOptions for DTWebgl.
|
||||||
const auto colorSpace = ToColorSpace2(mOptions);
|
const auto colorSpace = ToColorSpace2(mOptions);
|
||||||
auto presenter = srcFb->mSwapChain.Acquire(size, colorSpace);
|
auto presenter = srcFb->mSwapChain.Acquire(size, colorSpace);
|
||||||
|
@ -1067,7 +1068,6 @@ void WebGLContext::CopyToSwapChain(WebGLFramebuffer* const srcFb,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
const ScopedFBRebinder saveFB(this);
|
const ScopedFBRebinder saveFB(this);
|
||||||
|
|
||||||
const auto destFb = presenter->Fb();
|
const auto destFb = presenter->Fb();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче