From ead48195dbd4beb6b36ad745326b2fd96a8ba389 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 14 Dec 2017 20:35:36 +1100 Subject: [PATCH] [client] opengl: use the stride rather then rect width for padded widths --- client/renderers/opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/renderers/opengl.c b/client/renderers/opengl.c index 8a433564..dece84ac 100644 --- a/client/renderers/opengl.c +++ b/client/renderers/opengl.c @@ -599,7 +599,7 @@ bool lgr_opengl_on_frame_event(void * opaque, const uint8_t * data) glBindTexture(GL_TEXTURE_2D , this->textures[FRAME_TEXTURE]); glBindBuffer(GL_PIXEL_UNPACK_BUFFER, this->vboID[0] ); glPixelStorei(GL_UNPACK_ALIGNMENT , 4 ); - glPixelStorei(GL_UNPACK_ROW_LENGTH , this->format.width ); + glPixelStorei(GL_UNPACK_ROW_LENGTH , this->format.stride ); // copy the buffer to the texture memcpySSE(this->texPixels[this->texIndex], data, this->texSize);