=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Drop d3d_draw debug channel.

Alexandre Julliard julliard at winehq.org
Mon Feb 26 13:42:20 CST 2018


Module: wine
Branch: master
Commit: 66cd87106025f6cd27a403fec4ac97460a71ca83
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=66cd87106025f6cd27a403fec4ac97460a71ca83

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Sun Feb 25 23:23:30 2018 +0100

wined3d: Drop d3d_draw debug channel.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/drawprim.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index 2f3390b..19a578a 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -29,9 +29,8 @@
 
 #include "wined3d_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(d3d_draw);
+WINE_DEFAULT_DEBUG_CHANNEL(d3d);
 WINE_DECLARE_DEBUG_CHANNEL(d3d_perf);
-WINE_DECLARE_DEBUG_CHANNEL(d3d);
 
 /* Context activation is done by the caller. */
 static void draw_primitive_arrays(struct wined3d_context *context, const struct wined3d_state *state,
@@ -391,7 +390,7 @@ static void draw_primitive_immediate_mode(struct wined3d_context *context, const
     }
 
     gl_info->gl_ops.gl.p_glEnd();
-    checkGLcall("glEnd and previous calls");
+    checkGLcall("draw immediate mode");
 }
 
 static void draw_indirect(struct wined3d_context *context, const struct wined3d_state *state,
@@ -399,6 +398,7 @@ static void draw_indirect(struct wined3d_context *context, const struct wined3d_
 {
     const struct wined3d_gl_info *gl_info = context->gl_info;
     struct wined3d_buffer *buffer = parameters->buffer;
+    const void *offset;
 
     if (!gl_info->supported[ARB_DRAW_INDIRECT])
     {
@@ -408,18 +408,17 @@ static void draw_indirect(struct wined3d_context *context, const struct wined3d_
 
     GL_EXTCALL(glBindBuffer(GL_DRAW_INDIRECT_BUFFER, buffer->buffer_object));
 
+    offset = (void *)(GLintptr)parameters->offset;
     if (idx_size)
     {
         GLenum idx_type = idx_size == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT;
         if (state->index_offset)
             FIXME("Ignoring index offset %u.\n", state->index_offset);
-        GL_EXTCALL(glDrawElementsIndirect(state->gl_primitive_type, idx_type,
-                (void *)(GLintptr)parameters->offset));
+        GL_EXTCALL(glDrawElementsIndirect(state->gl_primitive_type, idx_type, offset));
     }
     else
     {
-        GL_EXTCALL(glDrawArraysIndirect(state->gl_primitive_type,
-                (void *)(GLintptr)parameters->offset));
+        GL_EXTCALL(glDrawArraysIndirect(state->gl_primitive_type, offset));
     }
 
     GL_EXTCALL(glBindBuffer(GL_DRAW_INDIRECT_BUFFER, 0));
@@ -723,6 +722,4 @@ void draw_primitive(struct wined3d_device *device, const struct wined3d_state *s
         gl_info->gl_ops.gl.p_glFlush(); /* Flush to ensure ordering across contexts. */
 
     context_release(context);
-
-    TRACE("Done all gl drawing.\n");
 }




More information about the wine-cvs mailing list