mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27: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]);
|
||||
|
||||
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);
|
||||
|
||||
this->texPos = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user