[client] egl: fix misuse of stride vs. pitch in texBufferStreamUpdate

This commit is contained in:
Jacob McNamee 2024-05-09 21:08:50 -07:00 committed by Geoffrey McRae
parent 82c9df54c5
commit 9bc82ab1b4

View File

@ -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;
}
}