[Piglit] [PATCH 2/3] glx/glx-multithread-texture: Don't probe an undefined back buffer
Thomas Hellstrom
thellstrom at vmware.com
Wed Jun 21 12:25:23 UTC 2017
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 <fjhenigman at google.com>
Signed-off-by: Thomas Hellstrom <thellstrom at 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
More information about the Piglit
mailing list