src/glrenderer.cpp

changeset 1369
1e2391b78d17
parent 1326
69a90bd2dba2
child 1371
b8df4748d04e
--- a/src/glrenderer.cpp	Sun Apr 01 15:32:30 2018 +0300
+++ b/src/glrenderer.cpp	Mon Apr 02 10:33:17 2018 +0300
@@ -341,7 +341,7 @@
 	glViewport (0, 0, width, height);
 	glMatrixMode (GL_PROJECTION);
 	glLoadIdentity();
-	gluPerspective (45.0f, (double) width / (double) height, 1.0f, 10000.0f);
+	gluPerspective (45.0f, (double) width / (double) height, near, far);
 	glMatrixMode (GL_MODELVIEW);
 
 	// Unfortunately Qt does not provide a resized() signal so we have to manually feed the information.

mercurial