From 3b07928373e81fd225917f058624ba6438e71d48 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 20 Apr 2012 16:30:25 +0900 Subject: [PATCH] Fix an inconsistent numeric constant. While checking the shaders to see if there might be anything obvious to work around the current nouveau shader issues, I found a 1 that should have been a 1.0. I'm surprised it ever compiled. --- libs/video/renderer/glsl/quakepnt.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/video/renderer/glsl/quakepnt.vert b/libs/video/renderer/glsl/quakepnt.vert index 114905a36..2a1ca43b6 100644 --- a/libs/video/renderer/glsl/quakepnt.vert +++ b/libs/video/renderer/glsl/quakepnt.vert @@ -14,6 +14,6 @@ void main (void) { gl_Position = mvp_mat * vec4 (vertex, 1.0); - gl_PointSize = max (1, 1024.0 * abs (1.0 / gl_Position.z)); + gl_PointSize = max (1.0, 1024.0 * abs (1.0 / gl_Position.z)); color = vcolor; }