Commit b924ccb6 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Check buffer->map_ptr to determine if the buffer object is mapped.

Instead of trying to replicate the wined3d_buffer_map() logic in wined3d_buffer_unmap(). Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 7a18b247
......@@ -1158,7 +1158,7 @@ static void wined3d_buffer_unmap(struct wined3d_buffer *buffer)
return;
}
if (!(buffer->flags & WINED3D_BUFFER_PIN_SYSMEM) && buffer->buffer_object)
if (buffer->map_ptr)
{
struct wined3d_device *device = buffer->resource.device;
const struct wined3d_gl_info *gl_info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment