HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/graphics/reallyslick/files/patch-src__hyperspace.cpp
--- src/hyperspace.cpp.orig	2009-05-17 07:41:52.000000000 +0900
+++ src/hyperspace.cpp	2009-05-21 18:05:29.000000000 +0900
@@ -144,6 +144,14 @@
 		first = 0;
 	}
 
+	aspectRatio = float(XStuff->windowWidth) / float(XStuff->windowHeight);
+	glViewport(0, 0, XStuff->windowWidth, XStuff->windowHeight);
+
+	// setup projection matrix
+	glMatrixMode(GL_PROJECTION);
+	glLoadIdentity();
+	gluPerspective(float(dFov), aspectRatio, 0.001f, 200.0f);
+	glGetDoublev(GL_PROJECTION_MATRIX, projMat);    
 	glMatrixMode(GL_MODELVIEW);
 
 	// Camera movements