Showing the changes to interface/src/main.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1471,8 +1471,15 @@ void reshape(int width, int height) · 1470 unmodified lines | |||
| 1471 | 1471 | ||
| 1472 | glLoadIdentity(); | 1472 | glLoadIdentity(); |
| 1473 | 1473 | ||
| 1474 | // XXXBHG - If we're in view frustum mode, then we need to do this little bit of hackery so that | ||
| 1475 | // OpenGL won't clip our frustum rendering lines. This is a debug hack for sure! | ||
| 1476 | if (::frustumOn) { | ||
| 1477 | nearClip -= 0.01f; | ||
| 1478 | farClip += 0.01f; | ||
| 1479 | } | ||
| 1480 | |||
| 1474 | // On window reshape, we need to tell OpenGL about our new setting | 1481 | // On window reshape, we need to tell OpenGL about our new setting |
| 1475 | gluPerspective(fov,aspectRatio,nearClip-0.01f,farClip+0.01f); | 1482 | gluPerspective(fov,aspectRatio,nearClip,farClip); |
| 1476 | 1483 | ||
| 1477 | glMatrixMode(GL_MODELVIEW); | 1484 | glMatrixMode(GL_MODELVIEW); |
| 1478 | glLoadIdentity(); | 1485 | glLoadIdentity(); |