projects
/
neverball
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc02b75
)
Quick hack to get decent performance
author
Alberto Mardegan
<mardy@users.sourceforge.net>
Wed, 13 Jul 2011 07:36:25 +0000
(10:36 +0300)
committer
Alberto 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
patch
|
blob
|
history
diff --git
a/share/solid_draw.c
b/share/solid_draw.c
index
1ab4289
..
93f3c32
100644
(file)
--- a/
share/solid_draw.c
+++ b/
share/solid_draw.c
@@
-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))