Quick hack to get decent performance
[neverball] / 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))