summaryrefslogtreecommitdiff
blob: 82e80cef0b7ff6d0c99a0872d126a6fd44409f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/src/ball.c
+++ b/src/ball.c
@@ -1821,6 +1821,7 @@
             } 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);
@@ -1829,6 +1830,7 @@
                                            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);