Commit 32799848 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Use list_empty() in shader_glsl_destroy().

parent a37b16e4
......@@ -10818,7 +10818,7 @@ static void shader_glsl_destroy(struct wined3d_shader *shader)
TRACE("Deleting linked programs.\n");
linked_programs = &shader->linked_programs;
if (linked_programs->next)
if (!list_empty(linked_programs))
{
struct glsl_shader_prog_link *entry, *entry2;
UINT i;
......
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