[client] fix incorrect texture buffer index

This commit is contained in:
Geoffrey McRae committed 2017-12-12 03:59:55 +11:00
1 parent bed2d95ccd
commit c0507f5a15
1 file changed
+1 -1
+1 -1
View File
@@ -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,