Skip to content

Commit

Permalink
Fix a regression due to the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmac committed Jan 22, 2013
1 parent 84362b2 commit 3e9ba93
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified bin/glsl2agal.swc
Binary file not shown.
Binary file modified bin/glsl2agalopt
Binary file not shown.
Binary file modified bin/glsl2agalopt.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions src/glsl/ir_print_agal_visitor.cpp
Expand Up @@ -471,8 +471,8 @@ void ir_print_agal_visitor::visit(ir_swizzle *ir)
int p=0;
for (unsigned i = 0; i < 4; i++) {
ralloc_asprintf_append (&buffer, "%c", "xyzw"[swiz[p]]);
if(writeMask & (1 << i))
p = std::min(p+1, writeComponents-1);
if(writeMask & (1 << i) && p+1 < ir->mask.num_components)
p++;
}
}

Expand Down

0 comments on commit 3e9ba93

Please sign in to comment.