Commit d67a9b5f authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Always unmap buffer objects if ARB_buffer_storage is not supported.

parent d838cf70
...@@ -2937,7 +2937,8 @@ static void wined3d_bo_gl_unmap(struct wined3d_bo_gl *bo, struct wined3d_context ...@@ -2937,7 +2937,8 @@ static void wined3d_bo_gl_unmap(struct wined3d_bo_gl *bo, struct wined3d_context
{ {
const struct wined3d_gl_info *gl_info = context_gl->gl_info; const struct wined3d_gl_info *gl_info = context_gl->gl_info;
if (context_gl->c.device->adapter->mapped_size <= MAX_PERSISTENT_MAPPED_BYTES) if (context_gl->c.d3d_info->persistent_map
&& context_gl->c.device->adapter->mapped_size <= MAX_PERSISTENT_MAPPED_BYTES)
{ {
TRACE("Not unmapping BO %p.\n", bo); TRACE("Not unmapping BO %p.\n", bo);
return; return;
...@@ -2960,6 +2961,7 @@ static void wined3d_bo_gl_unmap(struct wined3d_bo_gl *bo, struct wined3d_context ...@@ -2960,6 +2961,7 @@ static void wined3d_bo_gl_unmap(struct wined3d_bo_gl *bo, struct wined3d_context
if (bo->b.client_map_count) if (bo->b.client_map_count)
{ {
wined3d_device_bo_map_unlock(context_gl->c.device); wined3d_device_bo_map_unlock(context_gl->c.device);
assert(context_gl->c.d3d_info->persistent_map);
TRACE("BO %p is still in use by a client thread; not unmapping.\n", bo); TRACE("BO %p is still in use by a client thread; not unmapping.\n", bo);
return; return;
} }
......
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