From 980d9d4cd4ab941afc53bf8a83ea2a18d28ee4e2 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Fri, 21 Jul 2017 10:42:57 +0200 Subject: rlgl usable as standalone library --- examples/others/rlgl_standalone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c index 70cffee1..5de77bc2 100644 --- a/examples/others/rlgl_standalone.c +++ b/examples/others/rlgl_standalone.c @@ -91,7 +91,7 @@ int main(void) glfwSwapInterval(1); // Load OpenGL 3.3 supported extensions - rlglLoadExtensions(glfwGetProcAddress); + rlLoadExtensions(glfwGetProcAddress); //-------------------------------------------------------- // Initialize OpenGL context (states and resources) @@ -130,7 +130,7 @@ int main(void) rlClearScreenBuffers(); // Clear current framebuffer // Calculate projection matrix (from perspective) and view matrix from camera look at - Matrix matProj = MatrixPerspective(camera.fovy, (double)screenWidth/(double)screenHeight, 0.01, 1000.0); + Matrix matProj = MatrixPerspective(camera.fovy*DEG2RAD, (double)screenWidth/(double)screenHeight, 0.01, 1000.0); MatrixTranspose(&matProj); Matrix matView = MatrixLookAt(camera.position, camera.target, camera.up); -- cgit v1.2.3