diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 282: NativeStateWayland: use wl_display_roundtrip in flip method

Message ID 20130904175129.7960.78936.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org Sept. 4, 2013, 5:51 p.m. UTC
------------------------------------------------------------
revno: 282
fixes bug: https://launchpad.net/bugs/1211076
author: RafaƂ Mielniczuk <rafal.mielniczuk2@gmail.com>, Rafal Mielniczuk <rafal.mielniczuk2@gmail.com>
committer: Alexandros Frantzis <alexandros.frantzis@canonical.com>
branch nick: glmark2-wayland-wl-display-roundtrip
timestamp: Wed 2013-08-28 19:43:48 +0200
message:
  NativeStateWayland: use wl_display_roundtrip in flip method
  
  As noticed by Axel Davy we need to use wl_display_roundtrip in
  NativeStateWayland::flip to prevent blocking when eglSwapInterval(0) is
  set.
  
  More info:
  https://bugs.launchpad.net/glmark2/+bug/1211076
modified:
  src/native-state-wayland.cpp


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'src/native-state-wayland.cpp'
--- src/native-state-wayland.cpp	2013-08-06 22:18:53 +0000
+++ src/native-state-wayland.cpp	2013-08-28 17:43:48 +0000
@@ -279,7 +279,7 @@ 
 void
 NativeStateWayland::flip()
 {
-    int ret = wl_display_dispatch(display_->display);
+    int ret = wl_display_roundtrip(display_->display);
     should_quit_ = (ret == -1) || should_quit_;
 }