st/mesa: more helpful debug message in destroy_program_variants_cb()
authorBrian Paul <brianp@vmware.com>
Wed, 8 Jun 2011 21:15:07 +0000 (15:15 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 8 Jun 2011 21:15:07 +0000 (15:15 -0600)
src/mesa/state_tracker/st_program.c

index 0b1ad63..7a6d33d 100644 (file)
@@ -1087,8 +1087,8 @@ destroy_program_variants(struct st_context *st, struct gl_program *program)
       }
       break;
    default:
-      _mesa_problem(NULL, "Unexpected program target in "
-                    "destroy_program_variants_cb()");
+      _mesa_problem(NULL, "Unexpected program target 0x%x in "
+                    "destroy_program_variants_cb()", program->Target);
    }
 }