mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] opengl: fix row alignment parameter bug
This commit is contained in:
parent
5bba4dfab5
commit
c54a09ca25
@ -1178,7 +1178,7 @@ static bool drawFrame(struct Inst * this)
|
|||||||
g_gl_dynProcs.glBindBuffer(GL_PIXEL_UNPACK_BUFFER, this->vboID[this->texWIndex]);
|
g_gl_dynProcs.glBindBuffer(GL_PIXEL_UNPACK_BUFFER, this->vboID[this->texWIndex]);
|
||||||
|
|
||||||
int bpp = this->format.bpp / 8;
|
int bpp = this->format.bpp / 8;
|
||||||
glPixelStorei(GL_UNPACK_ALIGNMENT , bpp < 4 ? 1 : 0);
|
glPixelStorei(GL_UNPACK_ALIGNMENT , bpp < 4 ? 1 : bpp);
|
||||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, this->format.frameWidth);
|
glPixelStorei(GL_UNPACK_ROW_LENGTH, this->format.frameWidth);
|
||||||
|
|
||||||
this->texPos = 0;
|
this->texPos = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user