mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -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
c96aacabf7
commit
efd7b8987f
@ -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