Backbuffer contents become undefined after a swapbuffer call, so instead probe the front buffer. Alternatively we can of course probe the back before the swapbuffer call.
Cc: Frank Henigman <fjhenig...@google.com> Signed-off-by: Thomas Hellstrom <thellst...@vmware.com> --- tests/glx/glx-multithread-texture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/glx/glx-multithread-texture.c b/tests/glx/glx-multithread-texture.c index c838fb7..08121e3 100644 --- a/tests/glx/glx-multithread-texture.c +++ b/tests/glx/glx-multithread-texture.c @@ -151,6 +151,7 @@ draw_func(void *arg) glEnable(GL_TEXTURE_2D); glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); + glReadBuffer(GL_FRONT); while (!quit && count < num_test) { struct texture *tex = advance(&count, DRAW); -- 2.7.4 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit