]> git.tdb.fi Git - netvis.git/blobdiff - source/host.cpp
Get rid of any direct gl* calls in favor of the mspgl wrappers
[netvis.git] / source / host.cpp
index 991e7741a04eb9a4acef1292992c707f08456b40..bd93de190a1e6217bf1f1d7d3b23e7ca7ad80632 100644 (file)
@@ -163,7 +163,9 @@ void Host::render_label() const
        GL::translate(static_cast<int>(pos.x)-static_cast<int>(font.get_string_width(short_name)*5), static_cast<int>(pos.y)+6, 0);
        GL::scale_uniform(10);
 
-       font.draw_string(short_name);
+       GL::Immediate imm((GL::COLOR4_UBYTE, GL::TEXCOORD2, GL::VERTEX2));
+       imm.color(1.0f, 1.0f, 1.0f);
+       font.draw_string(short_name, imm);
 
        GL::pop_matrix();
 }