if(tech)
{
technique = *tech;
- technique.replace_texture("diffusemap", font.get_texture());
+ technique.replace_texture("diffuse_map", font.get_texture());
object.set_technique(&technique);
}
else
void Text::set_alignment(float h, float v)
{
+ if(h==horz_align && -v==vert_offset)
+ return;
+
float horz_adjust = (horz_align-h)*width;
float vert_adjust = -v-vert_offset;
horz_align = h;