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

wined3d: Only invalidate STATE_STREAMSRC for bound buffers.

parent c4da128b
......@@ -843,7 +843,8 @@ void CDECL wined3d_buffer_preload(struct wined3d_buffer *buffer)
FIXME("Too many full buffer conversions, stopping converting.\n");
buffer_unload(&buffer->resource);
buffer->flags &= ~WINED3D_BUFFER_CREATEBO;
device_invalidate_state(device, STATE_STREAMSRC);
if (buffer->bind_count)
device_invalidate_state(device, STATE_STREAMSRC);
return;
}
}
......@@ -1070,7 +1071,8 @@ HRESULT CDECL wined3d_buffer_map(struct wined3d_buffer *buffer, UINT offset, UIN
TRACE("Dynamic buffer, dropping VBO\n");
buffer_unload(&buffer->resource);
buffer->flags &= ~WINED3D_BUFFER_CREATEBO;
device_invalidate_state(device, STATE_STREAMSRC);
if (buffer->bind_count)
device_invalidate_state(device, STATE_STREAMSRC);
}
else
{
......
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