From c0507f5a15f9a2e2b41b65a0115a4cf2736c1ee2 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 25 Nov 2017 20:27:05 +1100 Subject: [PATCH] [client] fix incorrect texture buffer index --- client/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.c b/client/main.c index fba24e12..833a8309 100644 --- a/client/main.c +++ b/client/main.c @@ -300,7 +300,7 @@ int renderThread(void * unused) // update the texture glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, vboTex); - glBindBuffer(GL_PIXEL_UNPACK_BUFFER, vboID[texIndex ? 0 : 1]); + glBindBuffer(GL_PIXEL_UNPACK_BUFFER, vboID[texIndex]); glTexSubImage2D( GL_TEXTURE_2D, 0,