-
Thomas Hellstrom authored
Tests that check frontbuffer contents after drawing may fail because the X server touch the front contents between drawing and reading. In those cases, there's typically a pending expose event. So check for that situation and rerun the test. This fixes sporadic failures with glx-swap-copy when run with a compositor and a swap-interval of zero. It would also have fixed gl-1.0@swapbuffers-behavior, but a workaround (at least for dri3) was pushed in "df56af2b " (gl-1.0/swapbuffers-behavior: Try avoid reading from real front v2), but that test-specific workaround could be reverted after this commit. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt: <eric@anholt.net>
28a77cb8