mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-24 06:27:17 +00:00
[client] egl: fix misuse of stride vs. pitch in texBufferStreamUpdate
This commit is contained in:
parent
82c9df54c5
commit
9bc82ab1b4
@ -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 New Issue
Block a user