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

Alexandre Julliard julliard at winehq.org
Mon Jan 7 13:42:20 CST 2013


Module: wine
Branch: master
Commit: 5b42297a319fc051814314e79ca09e922bce130f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5b42297a319fc051814314e79ca09e922bce130f

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Sun Jan  6 14:44:07 2013 +0100

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

Strided draws don't use VBOs.

---

 dlls/wined3d/state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index a193fbd..6d97981 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));
     }




More information about the wine-cvs mailing list