mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[client] egl: fix non-dma texture stride issue
This commit is contained in:
parent
1f4395570c
commit
6357df1a7a
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ EGL_TexStatus egl_texBufferStreamProcess(EGL_Texture * texture)
|
||||||
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, buffer->pbo);
|
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, buffer->pbo);
|
||||||
glBindTexture(GL_TEXTURE_2D, tex);
|
glBindTexture(GL_TEXTURE_2D, tex);
|
||||||
|
|
||||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, texture->format.width);
|
glPixelStorei(GL_UNPACK_ROW_LENGTH, texture->format.stride);
|
||||||
glTexSubImage2D(GL_TEXTURE_2D,
|
glTexSubImage2D(GL_TEXTURE_2D,
|
||||||
0, 0, 0,
|
0, 0, 0,
|
||||||
texture->format.width,
|
texture->format.width,
|
||||||
|
|
Loading…
Reference in a new issue