Skip to content

Commit

Permalink
[client] opengl: fix row alignment parameter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Nov 8, 2023
1 parent 7c35bc7 commit dd5658c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/renderers/OpenGL/opengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dd5658c

Please sign in to comment.