[PATCH 3/6] wined3d: Respect the BO buffer offset in flush_bo_ranges().
Henri Verbeet
hverbeet at gmail.com
Wed Nov 24 08:28:30 CST 2021
On Wed, 24 Nov 2021 at 04:17, Zebediah Figura <zfigura at codeweavers.com> wrote:
> @@ -2769,7 +2769,7 @@ static void flush_bo_ranges(struct wined3d_context_gl *context_gl, const struct
> for (i = 0; i < range_count; ++i)
> {
> GL_EXTCALL(glFlushMappedBufferRangeAPPLE(bo->binding,
> - (uintptr_t)data->addr + ranges[i].offset, ranges[i].size));
> + bo->b.buffer_offset + (uintptr_t)data->addr + ranges[i].offset, ranges[i].size));
I'm not sure this change makes sense on its own. Whatever we do here
needs to be consistent with what we do in wined3d_bo_gl_map().
More information about the wine-devel
mailing list