[vlc-commits] opengl: better projection near/far values

Steve Lhomme git at videolan.org
Thu Nov 10 11:13:20 CET 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Oct 28 16:49:15 2016 +0200| [b5d1387df4b55b4165b5d67ff03b57f499537d53] | committer: Thomas Guillem

opengl: better projection near/far values

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b5d1387df4b55b4165b5d67ff03b57f499537d53
---

 modules/video_output/opengl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 2674608..49a7e0f 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -1070,8 +1070,8 @@ static void getZoomMatrix(float zoom, GLfloat matrix[static 16]) {
 /* perspective matrix see https://www.opengl.org/sdk/docs/man2/xhtml/gluPerspective.xml */
 static void getProjectionMatrix(float sar, GLfloat matrix[static 16]) {
 
-    float zFar  = 10;
-    float zNear = 0.1;
+    float zFar  = 1000;
+    float zNear = 0.01;
 
     float fovy = (float) M_PI / 3;
     float f = 1 / tan(fovy / 2);



More information about the vlc-commits mailing list