mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
renderer/native: Make the EGLStreams operate in mailbox mode
This means eglSwapBuffers() wont dead lock if there is an old buffer pending page flip. This could happen after e.g. mode changes or for other reasons. https://gitlab.gnome.org/GNOME/mutter/merge_requests/485
This commit is contained in:
parent
fe86694ddd
commit
1eabaf12da
@ -2623,7 +2623,7 @@ meta_renderer_native_create_surface_egl_device (CoglOnscreen *onscreen,
|
|||||||
EGLOutputLayerEXT output_layer;
|
EGLOutputLayerEXT output_layer;
|
||||||
EGLAttrib output_attribs[3];
|
EGLAttrib output_attribs[3];
|
||||||
EGLint stream_attribs[] = {
|
EGLint stream_attribs[] = {
|
||||||
EGL_STREAM_FIFO_LENGTH_KHR, 1,
|
EGL_STREAM_FIFO_LENGTH_KHR, 0,
|
||||||
EGL_CONSUMER_AUTO_ACQUIRE_EXT, EGL_FALSE,
|
EGL_CONSUMER_AUTO_ACQUIRE_EXT, EGL_FALSE,
|
||||||
EGL_NONE
|
EGL_NONE
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user