mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[client] fix incorrect texture buffer index
This commit is contained in:
parent
bed2d95ccd
commit
c0507f5a15
@ -300,7 +300,7 @@ int renderThread(void * unused)
|
|||||||
// update the texture
|
// update the texture
|
||||||
glEnable(GL_TEXTURE_2D);
|
glEnable(GL_TEXTURE_2D);
|
||||||
glBindTexture(GL_TEXTURE_2D, vboTex);
|
glBindTexture(GL_TEXTURE_2D, vboTex);
|
||||||
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, vboID[texIndex ? 0 : 1]);
|
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, vboID[texIndex]);
|
||||||
glTexSubImage2D(
|
glTexSubImage2D(
|
||||||
GL_TEXTURE_2D,
|
GL_TEXTURE_2D,
|
||||||
0,
|
0,
|
||||||
|
Loading…
Reference in New Issue
Block a user