[client] opengl: fix unintended vertical clipping in spiceDrawFill

This commit is contained in:
Jacob McNamee 2024-05-09 21:08:50 -07:00 committed by Geoffrey McRae
parent ecd3692e1e
commit c48bd35b3a

View File

@ -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]);
glPixelStorei(GL_UNPACK_ALIGNMENT , 4 );
glPixelStorei(GL_UNPACK_ROW_LENGTH, width);
for(; y < height; ++y)
for(int dy = 0; dy < height; ++dy)
glTexSubImage2D
(
GL_TEXTURE_2D,
0 ,
x ,
y ,
y + dy ,
width ,
1 ,
GL_BGRA,