Quick hack to get decent performance
authorAlberto Mardegan <mardy@users.sourceforge.net>
Wed, 13 Jul 2011 07:36:25 +0000 (10:36 +0300)
committerAlberto Mardegan <mardy@users.sourceforge.net>
Wed, 13 Jul 2011 07:36:25 +0000 (10:36 +0300)
This hack can be reverted when the "shadoes" configure option works again.

share/solid_draw.c

index 1ab4289..93f3c32 100644 (file)
@@ -767,11 +767,13 @@ void sol_draw_enable(struct s_rend *rend)
     glEnableClientState(GL_VERTEX_ARRAY);
     glEnableClientState(GL_NORMAL_ARRAY);
 
+#ifndef __MAEMO__
     if (gli.max_texture_units > 2)
         tex_env_active(&tex_env_shadow_clip);
     else if (gli.max_texture_units > 1)
         tex_env_active(&tex_env_shadow);
     else
+#endif
         tex_env_active(&tex_env_default);
 
     if (tex_env_stage(TEX_STAGE_SHADOW))