Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed linked list corruption.
Moving uniforms to a separate list screwed up the value of "prev" when moving
 on to the next iteration.

--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 6, 2008
1 parent b7eb827 commit ec8fdf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mojoshader.c
Expand Up @@ -4030,9 +4030,10 @@ static void process_definitions(Context *ctx)
case REG_TYPE_CONSTBOOL:
// separate uniforms into a different list for now.
prev->next = item->next;
item->next = NULL;
uitem->next = item;
uitem = item;
uitem->next = NULL;
item = prev;
break;

default:
Expand Down

0 comments on commit ec8fdf4

Please sign in to comment.