fix broken get_half & get_zero

This commit is contained in:
Aapo Tahkola
2006-01-24 20:24:06 +00:00
parent 65573edd1b
commit 4dd8a8907e

View File

@@ -593,14 +593,14 @@ static struct ureg get_one( struct texenv_fragment_program *p )
static struct ureg get_half( struct texenv_fragment_program *p )
{
if (is_undef(p->half))
p->one = register_scalar_const(p, 0.5);
p->half = register_scalar_const(p, 0.5);
return p->half;
}
static struct ureg get_zero( struct texenv_fragment_program *p )
{
if (is_undef(p->zero))
p->one = register_scalar_const(p, 0.0);
p->zero = register_scalar_const(p, 0.0);
return p->zero;
}