summaryrefslogtreecommitdiff
path: root/src/mesa/shader/prog_print.c
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-02-22 09:08:36 -0700
committerBrian <brian@yutani.localnet.net>2007-02-22 09:08:36 -0700
commit7b30053b264726156a018c822657270e745320ce (patch)
tree67681810cb59945b36c6fcdda22b677edfa9c7eb /src/mesa/shader/prog_print.c
parent29c471aafc6a3fef23d553e31a555d1782854a77 (diff)
fix negative indentation problem
Diffstat (limited to 'src/mesa/shader/prog_print.c')
-rw-r--r--src/mesa/shader/prog_print.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c
index 9560ffad7d..95b62fcfb5 100644
--- a/src/mesa/shader/prog_print.c
+++ b/src/mesa/shader/prog_print.c
@@ -477,7 +477,7 @@ _mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent,
gl_prog_print_mode mode,
const struct gl_program *prog)
{
- GLuint i;
+ GLint i;
if (inst->Opcode == OPCODE_ELSE ||
inst->Opcode == OPCODE_ENDIF ||
@@ -485,7 +485,6 @@ _mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent,
inst->Opcode == OPCODE_ENDSUB) {
indent -= 3;
}
- assert(indent >= 0);
for (i = 0; i < indent; i++) {
_mesa_printf(" ");
}