Permalink
Browse files

[client] opengl: use the stride rather then rect width for padded widths

  • Loading branch information...
gnif committed Dec 14, 2017
1 parent c0b67e7 commit ead48195dbd4beb6b36ad745326b2fd96a8ba389
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit ead4819

Please sign in to comment.