From: Michel Dänzer <[email protected]>

Calling eglSwapBuffers may invalidate the back buffer contents, so we
must not do so before probing the back buffer contents. The test exits
immediately even without -auto, so just remove the eglSwapBuffers call.

Signed-off-by: Michel Dänzer <[email protected]>
---
 tests/egl/egl-create-pbuffer-surface.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/egl/egl-create-pbuffer-surface.c 
b/tests/egl/egl-create-pbuffer-surface.c
index 6cb3d70..bd3809b 100644
--- a/tests/egl/egl-create-pbuffer-surface.c
+++ b/tests/egl/egl-create-pbuffer-surface.c
@@ -74,7 +74,6 @@ draw(struct egl_state *state)
 
    eglMakeCurrent(state->egl_dpy, state->surf, state->surf, state->ctx);
    piglit_draw_rect_tex(0, 0, 256, 256, 0, 0, 1, 1);
-   eglSwapBuffers(state->egl_dpy, state->surf);
 
    if (!piglit_probe_rect_rgba(0, 0, 256, 256, purple))
       piglit_report_result(PIGLIT_FAIL);
-- 
2.9.3

_______________________________________________
Piglit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to