Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/paint.cc2
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);