mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 05:42:58 +00:00
[client] egl: fix line copy size computation in texBufferStreamUpdate
This commit is contained in:
parent
9bc82ab1b4
commit
2067b21d47
1 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ static bool egl_texBufferStreamUpdate(EGL_Texture * texture,
|
|||
const uint8_t * src = update->buffer;
|
||||
for(int y = 0; y < update->height; ++y)
|
||||
{
|
||||
memcpy(dst, src, update->pitch);
|
||||
memcpy(dst, src, update->width * texture->format.bpp);
|
||||
dst += texture->format.pitch;
|
||||
src += update->pitch;
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ static bool egl_texBufferStreamUpdate(EGL_Texture * texture,
|
|||
for(int y = 0; y < update->height; ++y)
|
||||
{
|
||||
src -= update->pitch;
|
||||
memcpy(dst, src, update->pitch);
|
||||
memcpy(dst, src, update->width * texture->format.bpp);
|
||||
dst += texture->format.pitch;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue