On 06/21/2017 06:25 AM, Thomas Hellstrom wrote:
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 <[email protected]>
Signed-off-by: Thomas Hellstrom <[email protected]>
---
  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);


Reviewed-by: Brian Paul <[email protected]>

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

Reply via email to