summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-07-22 10:35:41 +0200
committerraysan5 <[email protected]>2017-07-22 10:35:49 +0200
commit00d2768bc910ca0b6749878f0d142b62d30d55c1 (patch)
treefda7d1963c0096452bacd8ba3682db8edc1ccc48 /src/rlgl.c
parentbee980e90f1e27a0db8bd583ad0be57113d1298e (diff)
downloadraylib-00d2768bc910ca0b6749878f0d142b62d30d55c1.tar.gz
raylib-00d2768bc910ca0b6749878f0d142b62d30d55c1.zip
Corrected bug on MatrixPerspective()
Some other tweaks...
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index 93612896..ac4ad20d 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -3585,7 +3585,7 @@ static void UpdateBuffersDefault(void)
// Draw default internal buffers vertex data
// NOTE: We draw in this order: lines, triangles, quads
-static void DrawBuffersDefault()
+static void DrawBuffersDefault(void)
{
Matrix matProjection = projection;
Matrix matModelView = modelview;
@@ -3967,9 +3967,9 @@ static void SetStereoConfig(VrDeviceInfo hmd)
SetShaderValue(vrConfig.distortionShader, GetShaderLocation(vrConfig.distortionShader, "chromaAbParam"), hmd.chromaAbCorrection, 4);
#endif
- // Fovy is normally computed with: 2*atan2(hmd.vScreenSize, 2*hmd.eyeToScreenDistance)*RAD2DEG
+ // Fovy is normally computed with: 2*atan2(hmd.vScreenSize, 2*hmd.eyeToScreenDistance)
// ...but with lens distortion it is increased (see Oculus SDK Documentation)
- //float fovy = 2.0f*atan2(hmd.vScreenSize*0.5f*distortionScale, hmd.eyeToScreenDistance)*RAD2DEG; // Really need distortionScale?
+ //float fovy = 2.0f*atan2(hmd.vScreenSize*0.5f*distortionScale, hmd.eyeToScreenDistance); // Really need distortionScale?
float fovy = 2.0f*(float)atan2(hmd.vScreenSize*0.5f, hmd.eyeToScreenDistance);
// Compute camera projection matrices