Index: render.c
===================================================================
--- render.c	(revision 828)
+++ render.c	(revision 829)
@@ -312,6 +312,8 @@
         glColor4f(1.f,1.f,1.f,1.f);
 #endif    
 
+// TODO: Find out what exactly causes the application to terminate on the iPhone OS.
+#ifndef IPHONEOS
     for(j=0;j<(RAYDIUM_RENDER_MAX_TEXUNITS-1);j++)
             if(raydium_vertex_texture_env[j][i])
                 {
@@ -356,6 +358,7 @@
         }
     }
     else
+#endif
     {
         // cancel previous multitexturing settings
         if(multi_prepared)