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