struct ureg_program *ureg;
uint i;
- ureg = ureg_create( pipe, TGSI_PROCESSOR_VERTEX );
+ ureg = ureg_create( TGSI_PROCESSOR_VERTEX );
if (ureg == NULL)
return NULL;
ureg_END( ureg );
- return ureg_create_shader_and_destroy( ureg );
+ return ureg_create_shader_and_destroy( ureg, pipe );
}
struct ureg_src tex;
struct ureg_dst out;
- ureg = ureg_create( pipe, TGSI_PROCESSOR_FRAGMENT );
+ ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT );
if (ureg == NULL)
return NULL;
ureg_TEX( ureg, out, TGSI_TEXTURE_2D, tex, sampler );
ureg_END( ureg );
- return ureg_create_shader_and_destroy( ureg );
+ return ureg_create_shader_and_destroy( ureg, pipe );
}
struct ureg_src src;
struct ureg_dst dst;
- ureg = ureg_create( pipe, TGSI_PROCESSOR_FRAGMENT );
+ ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT );
if (ureg == NULL)
return NULL;
ureg_MOV( ureg, dst, src );
ureg_END( ureg );
- return ureg_create_shader_and_destroy( ureg );
+ return ureg_create_shader_and_destroy( ureg, pipe );
}