Commit 9a7591fa authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Add a few traces to draw_primitive().

parent c5eb2ed2
......@@ -5132,9 +5132,17 @@ void draw_primitive(struct wined3d_device *device, const struct wined3d_state *s
unsigned int i, idx_size = 0;
const void *idx_data = NULL;
TRACE("device %p, state %p, parameters %p.\n", device, state, parameters);
if (!parameters->indirect && !parameters->u.direct.index_count)
return;
if (!parameters->indirect)
TRACE("base_vertex_idx %d, start_idx %u, index_count %u, start_instance %u, instance_count %u.\n",
parameters->u.direct.base_vertex_idx, parameters->u.direct.start_idx,
parameters->u.direct.index_count, parameters->u.direct.start_instance,
parameters->u.direct.instance_count);
if (!(rtv = fb->render_targets[0]))
rtv = fb->depth_stencil;
......@@ -5367,6 +5375,8 @@ void draw_primitive(struct wined3d_device *device, const struct wined3d_state *s
wined3d_fence_issue(context->buffer_fences[i], device);
context_release(context);
TRACE("Draw completed.\n");
}
void wined3d_context_gl_unload_tex_coords(const struct wined3d_context_gl *context_gl)
......
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