mirror of
https://github.com/reactos/wine.git
synced 2025-02-12 23:58:56 +00:00
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: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7a18b2473f
commit
b924ccb699
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user