Call _mesa_problem() from i915_program_error() so we get a nice error message.

This commit is contained in:
Brian Paul
2006-11-02 21:39:20 +00:00
parent b6c2a6a0f2
commit 67a101759e
2 changed files with 3 additions and 9 deletions
+1 -4
View File
@@ -369,10 +369,7 @@ GLuint i915_emit_param4fv( struct i915_fragment_program *p,
void i915_program_error( struct i915_fragment_program *p, const char *msg )
{
/* XXX we shouldn't print anything to stdout, record GL error or
* call _mesa_problem()
*/
fprintf(stderr, "%s\n", msg);
_mesa_problem(NULL, "i915_program_error: %s", msg);
p->error = 1;
}
+2 -5
View File
@@ -379,17 +379,14 @@ i915_emit_param4fv(struct i915_fragment_program * p, const GLfloat * values)
void
i915_program_error(struct i915_fragment_program *p, const char *msg)
{
/* XXX we shouldn't print anything to stdout, record GL error or
* call _mesa_problem()
*/
fprintf(stderr, "%s\n", msg);
_mesa_problem(NULL, "i915_program_error: %s", msg);
p->error = 1;
}
void
i915_init_program(struct i915_context *i915, struct i915_fragment_program *p)
{