mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00: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.
This commit is contained in:
parent
3e8364d11d
commit
6628d12f3c
@ -2122,7 +2122,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