mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[client] opengl: use the stride rather then rect width for padded widths
This commit is contained in:
parent
c0b67e7cb2
commit
ead48195db
@ -599,7 +599,7 @@ bool lgr_opengl_on_frame_event(void * opaque, const uint8_t * data)
|
|||||||
glBindTexture(GL_TEXTURE_2D , this->textures[FRAME_TEXTURE]);
|
glBindTexture(GL_TEXTURE_2D , this->textures[FRAME_TEXTURE]);
|
||||||
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, this->vboID[0] );
|
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, this->vboID[0] );
|
||||||
glPixelStorei(GL_UNPACK_ALIGNMENT , 4 );
|
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
|
// copy the buffer to the texture
|
||||||
memcpySSE(this->texPixels[this->texIndex], data, this->texSize);
|
memcpySSE(this->texPixels[this->texIndex], data, this->texSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user