fix failed assertion (parameter can be a PROGRAM_CONSTANT)
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 11 Apr 2008 15:35:18 +0000 (09:35 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 11 Apr 2008 15:35:18 +0000 (09:35 -0600)
src/mesa/shader/prog_execute.c

index 00a375078b44e0b59173a87065e4a77b7d65bdb7..7f9687c36fc0bb640698a4b1cdf69eaad4a9a4ce 100644 (file)
@@ -89,6 +89,7 @@ get_register_pointer(const struct prog_src_register *source,
       else {
          const struct gl_program_parameter_list *params;
          ASSERT(source->File == PROGRAM_LOCAL_PARAM ||
+                source->File == PROGRAM_CONSTANT ||
                 source->File == PROGRAM_STATE_VAR);
          params = machine->CurProgram->Parameters;
          if (reg < 0 || reg >= params->NumParameters)