Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45279 Signed-off-by: Andrew Wesie awesie@gmail.com --- dlls/wined3d/buffer.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c index e7b05157cc..247db45bb7 100644 --- a/dlls/wined3d/buffer.c +++ b/dlls/wined3d/buffer.c @@ -1399,6 +1399,10 @@ static HRESULT buffer_init(struct wined3d_buffer *buffer, struct wined3d_device * (Half-Life 2 and others.) */ dynamic_buffer_ok = gl_info->supported[APPLE_FLUSH_BUFFER_RANGE] || gl_info->supported[ARB_MAP_BUFFER_RANGE];
+ /* We need vertex buffer objects in OpenGL core profiles. Force GPU access. */ + if (bind_flags & WINED3D_BIND_VERTEX_BUFFER) + access |= WINED3D_RESOURCE_ACCESS_GPU; + if (!gl_info->supported[ARB_VERTEX_BUFFER_OBJECT]) { TRACE("Not creating a BO because GL_ARB_vertex_buffer is not supported.\n");