diff --git a/client/renderers/EGL/texture_buffer.c b/client/renderers/EGL/texture_buffer.c index c13f4b5d..36e886db 100644 --- a/client/renderers/EGL/texture_buffer.c +++ b/client/renderers/EGL/texture_buffer.c @@ -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; } }