mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +00:00
[client] opengl: fix unintended vertical clipping in spiceDrawFill
This commit is contained in:
parent
ecd3692e1e
commit
c48bd35b3a
1 changed files with 2 additions and 2 deletions
|
@ -622,13 +622,13 @@ static void opengl_spiceDrawFill(LG_Renderer * renderer, int x, int y, int width
|
||||||
glBindTexture(GL_TEXTURE_2D, this->textures[SPICE_TEXTURE]);
|
glBindTexture(GL_TEXTURE_2D, this->textures[SPICE_TEXTURE]);
|
||||||
glPixelStorei(GL_UNPACK_ALIGNMENT , 4 );
|
glPixelStorei(GL_UNPACK_ALIGNMENT , 4 );
|
||||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, width);
|
glPixelStorei(GL_UNPACK_ROW_LENGTH, width);
|
||||||
for(; y < height; ++y)
|
for(int dy = 0; dy < height; ++dy)
|
||||||
glTexSubImage2D
|
glTexSubImage2D
|
||||||
(
|
(
|
||||||
GL_TEXTURE_2D,
|
GL_TEXTURE_2D,
|
||||||
0 ,
|
0 ,
|
||||||
x ,
|
x ,
|
||||||
y ,
|
y + dy ,
|
||||||
width ,
|
width ,
|
||||||
1 ,
|
1 ,
|
||||||
GL_BGRA,
|
GL_BGRA,
|
||||||
|
|
Loading…
Reference in a new issue