From 5b42297a319fc051814314e79ca09e922bce130f Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sun, 6 Jan 2013 14:44:07 +0100 Subject: [PATCH] wined3d: Remove a redundant condition in the indexbuffer() state handler. Strided draws don't use VBOs. --- dlls/wined3d/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index a193fbd8387..6d9798108db 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -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)); }