From 8a4eb790261737104be262cdeab4b0e7d0f5566d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 15 Aug 2008 14:03:22 +0000 Subject: render dock locations on active targets, fix star texture loading and rendering --- src/render/draw.cc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/render') diff --git a/src/render/draw.cc b/src/render/draw.cc index 18234f5..af19abe 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -150,6 +150,15 @@ void pass_prepare(float seconds) globes_list[globe->state()->distance()] = globe; + // load globe textures + if (!globe->render_texture && globe->texture().size()) { + std::stringstream texname; + texname << "textures/" << globe->texture(); + globe->render_texture = Textures::load(texname.str()); + if (!globe->render_texture) + globe->entity_texture.clear(); + } + if (flag_is_set(globe->flags(), core::Entity::Bright)) { // bright globes set level light @@ -170,16 +179,6 @@ void pass_prepare(float seconds) glLightfv(GL_LIGHT1, GL_SPECULAR, specular_light); gl::enable(GL_LIGHT1); has_zone_light = true; - } else { - - // load globe textures - if (!globe->render_texture && globe->texture().size()) { - std::stringstream texname; - texname << "textures/" << globe->texture(); - globe->render_texture = Textures::load(texname.str()); - if (!globe->render_texture) - globe->entity_texture.clear(); - } } } } -- cgit v1.2.3