diff --git a/libobs/graphics/graphics.c b/libobs/graphics/graphics.c index aae2e439e..4a17affab 100644 --- a/libobs/graphics/graphics.c +++ b/libobs/graphics/graphics.c @@ -891,7 +891,7 @@ void gs_texture_set_image(gs_texture_t *tex, const uint8_t *data, if (flip) { for (y = height-1; y >= 0; y--) memcpy(ptr + (uint32_t)y * linesize_out, - data + (uint32_t)y * linesize, + data + (uint32_t)(height - y - 1) * linesize, row_copy); } else if (linesize == linesize_out) {