diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2017-06-21 14:01:34 +0200 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2017-06-21 13:43:25 -0600 |
commit | 5bdccab7e7c7bf4018f0a3436911ca32a87f8b0c (patch) | |
tree | 67e4f6c99cbd24a426721cfb4fabc3ca3da9f975 | |
parent | c9550bbf6323fe2a5a4665f60b9b9645dca66adf (diff) |
glx/glx-multithread-texture: Don't probe an undefined back buffer
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@google.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r-- | tests/glx/glx-multithread-texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/glx/glx-multithread-texture.c b/tests/glx/glx-multithread-texture.c index c838fb7d6..08121e38e 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); |