wined3d: Reference the bo in wined3d_buffer_gl_upload_ranges().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2020-12-03 18:47:58 +03:30 committed by Alexandre Julliard
parent 736ac3eaf9
commit 5333cd0612
1 changed files with 1 additions and 0 deletions

View File

@ -1412,6 +1412,7 @@ static void wined3d_buffer_gl_upload_ranges(struct wined3d_buffer *buffer, struc
GL_EXTCALL(glBufferSubData(buffer_gl->bo.binding,
range->offset, range->size, (BYTE *)data + range->offset - data_offset));
}
wined3d_context_gl_reference_bo(context_gl, &buffer_gl->bo);
checkGLcall("buffer upload");
}