# HG changeset patch # User John Tsiombikas # Date 1315506164 -10800 # Node ID bc6db80aaa589fa8e8587b8dd0a3e05a7936f54f # Parent 3d933b796ad2c42e9641aeea31dcf63debc89b4a stop the texture coordinates from growing to rediculous proportions diff -r 3d933b796ad2 -r bc6db80aaa58 src/config.h --- a/src/config.h Thu Sep 08 15:06:40 2011 +0300 +++ b/src/config.h Thu Sep 08 21:22:44 2011 +0300 @@ -3,6 +3,8 @@ #if defined(__IPHONE_3_0) || defined(__IPHONE_3_2) || defined(__IPHONE_4_0) #define IPHONE + +#define glClearDepth glClearDepthf #endif #endif /* CONFIG_H_ */ diff -r 3d933b796ad2 -r bc6db80aaa58 src/istereo.c --- a/src/istereo.c Thu Sep 08 15:06:40 2011 +0300 +++ b/src/istereo.c Thu Sep 08 21:22:44 2011 +0300 @@ -100,7 +100,6 @@ glClearColor(0.6, 0.6, 0.6, 1.0); tunnel_speed = 0.75; } - glClearDepthf(1.0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); if(stereo) { @@ -198,7 +197,7 @@ gl_matrix_mode(GL_TEXTURE); gl_load_identity(); - gl_translatef(0, -t * tunnel_speed, 0); + gl_translatef(0, -fmod(t * tunnel_speed, 1.0), 0); gl_begin(GL_QUADS); gl_color3f(1.0, 1.0, 1.0);