Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed pop_scope().
  • Loading branch information
icculus committed Feb 22, 2010
1 parent 5388024 commit e3b8540
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mojoshader_compiler.c
Expand Up @@ -643,9 +643,12 @@ static void push_scope(Context *ctx)
static void pop_scope(Context *ctx)
{
UserTypeMap *map = &ctx->usertypes;
assert(map->scope != NULL);
while ((map->scope) && (map->scope->symbol))
pop_usertype(ctx);

assert(map->scope != NULL);
assert(map->scope->symbol == NULL);
pop_usertype(ctx);
} // push_scope

static void destroy_usertypemap(Context *ctx)
Expand Down

0 comments on commit e3b8540

Please sign in to comment.