mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
fix negative indentation problem
This commit is contained in:
parent
29c471aafc
commit
7b30053b26
1 changed files with 1 additions and 2 deletions
|
|
@ -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(" ");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue