From c54a09ca255a7cd4cb3db9a576b69336905b1813 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 8 Nov 2023 14:40:30 +1100 Subject: [PATCH] [client] opengl: fix row alignment parameter bug --- client/renderers/OpenGL/opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/renderers/OpenGL/opengl.c b/client/renderers/OpenGL/opengl.c index 63deeb32..1fccba1d 100644 --- a/client/renderers/OpenGL/opengl.c +++ b/client/renderers/OpenGL/opengl.c @@ -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;