st/egl: swapping without a buffer is not an error
authorChia-I Wu <olvaffe@gmail.com>
Wed, 20 Jul 2011 10:20:20 +0000 (18:20 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Sat, 20 Aug 2011 18:01:49 +0000 (02:01 +0800)
This fixes Kwaak3.

src/gallium/state_trackers/egl/android/native_android.cpp

index a6e0d254ef29a12ba34851106bacbb6c9c0bdf3a..ccb71efa030f7e2d45ec607dae7a03d966084c7f 100644 (file)
@@ -296,7 +296,7 @@ android_surface_swap_buffers(struct native_surface *nsurf)
    struct android_display *adpy = asurf->adpy;
 
    if (!asurf->buf)
-      return FALSE;
+      return TRUE;
 
    android_surface_enqueue_buffer(&asurf->base);