fix broken get_half & get_zero
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user