Commit 5b42297a authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Remove a redundant condition in the indexbuffer() state handler.

Strided draws don't use VBOs.
parent da71c922
......@@ -4897,7 +4897,7 @@ static void indexbuffer(struct wined3d_context *context, const struct wined3d_st
const struct wined3d_stream_info *stream_info = &context->swapchain->device->strided_streams;
const struct wined3d_gl_info *gl_info = context->gl_info;
if (state->user_stream || !state->index_buffer || !stream_info->all_vbo)
if (!state->index_buffer || !stream_info->all_vbo)
{
GL_EXTCALL(glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, 0));
}
......
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