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

This commit is contained in:
Jacob McNamee authored and Geoffrey McRae committed 2024-05-20 19:42:21 +10:00
1 parent 82c9df54c5
commit 9bc82ab1b4
1 file changed
+2 -2
+2 -2
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;
}
}