diff options
author | Stijn Buys <ingar@osirion.org> | 2011-08-04 20:12:21 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-08-04 20:12:21 +0000 |
commit | c21cbc3f7b9ac6f9e04fb09fa04ee483dd71a82b (patch) | |
tree | c5146f3b3a3e2487c2aea459554697f16f2b5d11 /src/ui | |
parent | 5feb96ea3e0616d108a68c14a9a77d0217a686cd (diff) |
Force material power state to on when drawing ui bitmaps
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/paint.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/paint.cc b/src/ui/paint.cc index c257022..d400baa 100644 --- a/src/ui/paint.cc +++ b/src/ui/paint.cc @@ -107,6 +107,7 @@ void Paint::draw_bitmap(const math::Vector2f &global_location, const math::Vecto material->set_flags(model::Material::Bright); } + render::State::set_power(true); render::State::use_material(material); // this overrides material color @@ -150,6 +151,7 @@ void Paint::draw_material(const math::Vector2f &global_location, const math::Vec const float w1 = (global_location.x() + size.width()) / material->size().width(); const float h1 = (global_location.y() + size.height()) / material->size().height(); + render::State::set_power(true); render::State::set_color(math::Color()); render::State::set_color_second(math::Color()); render::State::use_material(material); |