From c21cbc3f7b9ac6f9e04fb09fa04ee483dd71a82b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 4 Aug 2011 20:12:21 +0000 Subject: Force material power state to on when drawing ui bitmaps --- src/ui/paint.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui') 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); -- cgit v1.2.3