wined3d: Use wined3d_resource_gl_legacy_map_flags() in wined3d_buffer_gl_map().

For consistency with the ARB_map_buffer_range path.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2019-09-23 14:54:14 +03:30 committed by Alexandre Julliard
parent a22153005d
commit 8b780d2d8c
1 changed files with 1 additions and 1 deletions

View File

@ -1045,7 +1045,7 @@ static HRESULT wined3d_buffer_gl_map(struct wined3d_buffer_gl *buffer_gl,
if (buffer_gl->b.flags & WINED3D_BUFFER_APPLESYNC)
wined3d_buffer_gl_sync_apple(buffer_gl, flags, gl_info);
buffer_gl->b.map_ptr = GL_EXTCALL(glMapBuffer(buffer_gl->buffer_type_hint,
GL_READ_WRITE));
wined3d_resource_gl_legacy_map_flags(flags)));
checkGLcall("glMapBuffer");
}