summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-07-19 18:20:04 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-07-19 18:20:04 +0000
commitbfb5ea307ec48b9b8d0d2eca0c03f6d02273d454 (patch)
treec1532e812d1aad20e36f7eab481664896eaaaedd
parent364ae78e69361618c49078edb1dee090a18025f5 (diff)
replace fprintf() calls with _mesa_problem()
-rw-r--r--src/mesa/main/texenvprogram.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c
index 5076c1ec40..f18ae041f3 100644
--- a/src/mesa/main/texenvprogram.c
+++ b/src/mesa/main/texenvprogram.c
@@ -358,7 +358,7 @@ static struct ureg get_temp( struct texenv_fragment_program *p )
bit = ffs( ~p->temp_in_use );
if (!bit) {
- fprintf(stderr, "%s: out of temporaries\n", __FILE__);
+ _mesa_problem(NULL, "%s: out of temporaries\n", __FILE__);
exit(1);
}
@@ -383,7 +383,7 @@ static struct ureg get_tex_temp( struct texenv_fragment_program *p )
bit = ffs( ~p->temp_in_use );
if (!bit) {
- fprintf(stderr, "%s: out of temporaries\n", __FILE__);
+ _mesa_problem(NULL, "%s: out of temporaries\n", __FILE__);
exit(1);
}
@@ -610,7 +610,7 @@ static struct ureg get_zero( struct texenv_fragment_program *p )
static void program_error( struct texenv_fragment_program *p, const char *msg )
{
- fprintf(stderr, "%s\n", msg);
+ _mesa_problem(NULL, msg);
p->error = 1;
}
@@ -917,7 +917,8 @@ static void load_texture( struct texenv_fragment_program *p, GLuint unit )
struct ureg texcoord = register_input(p, FRAG_ATTRIB_TEX0+unit);
struct ureg tmp = get_tex_temp( p );
- if (dim == TEXTURE_UNKNOWN_INDEX) program_error(p, "TexSrcBit");
+ if (dim == TEXTURE_UNKNOWN_INDEX)
+ program_error(p, "TexSrcBit");
/* TODO: Use D0_MASK_XY where possible.
*/