зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1576968 - Use glFlush() instead of -[NSOpenGLContext flushBuffer] when we have no framebuffer zero. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D43648 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ddd89317c8
Коммит
19057e1f9d
|
@ -123,7 +123,14 @@ bool GLContextCGL::IsDoubleBuffered() const { return sCGLLibrary.UseDoubleBuffer
|
|||
bool GLContextCGL::SwapBuffers() {
|
||||
AUTO_PROFILER_LABEL("GLContextCGL::SwapBuffers", GRAPHICS);
|
||||
|
||||
[mContext flushBuffer];
|
||||
if (StaticPrefs::gfx_core_animation_enabled_AtStartup()) {
|
||||
// We do not have a framebuffer zero. Just do a flush.
|
||||
// Flushing is necessary if we want our IOSurfaces to have the correct
|
||||
// content once they're picked up by the WindowServer from our CALayers.
|
||||
fFlush();
|
||||
} else {
|
||||
[mContext flushBuffer];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче