[Piglit] [PATCH 1/3] egl-create-pbuffer-surface: Don't call eglSwapBuffers
Michel Dänzer
michel at daenzer.net
Tue Aug 23 08:30:32 UTC 2016
From: Michel Dänzer <michel.daenzer at amd.com>
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 <michel.daenzer at amd.com>
---
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
More information about the Piglit
mailing list