File foobillard-no-nv.diff of Package foobillard

Index: src/ball.c
===================================================================
--- src/ball.c.orig
+++ src/ball.c
@@ -1826,6 +1826,7 @@ void draw_balls( BallsType balls, myvec
             } else if( options_cuberef && cuberef_binds!=0 ){
                 glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, cuberef_binds[i]);
 #ifdef GL_VERTEX_PROGRAM_NV
+#ifdef USE_BALL_FRESNEL
                 {
                     myvec cam_pos2;
 //                    cam_pos2=vec_scale(vec_unit(vec_diff(cam_pos,balls.ball[i].r)),BALL_D/2.5);
@@ -1834,6 +1835,7 @@ void draw_balls( BallsType balls, myvec
                                            BALL_D/2.0,BALL_D/2.5,0,0 );
                 }
 #endif
+#endif
                 draw_ball(&balls.ball[i],cam_pos,cam_FOV,win_width,0);
             }else{
                 draw_ball(&balls.ball[i],cam_pos,cam_FOV,win_width,0);
openSUSE Build Service is sponsored by