Skip to content
Permalink
Browse files
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 ec8fdf44bbe3cfb0cd4b13085138483a09ca8dd9
Showing with 2 additions and 1 deletion.
  1. +2 −1 mojoshader.c
@@ -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:

0 comments on commit ec8fdf4

Please sign in to comment.