Mesa (master): mesa: Add missing support for glFogiv(GL_FOG_DISTANCE_MODE_NV)
Ian Romanick
idr at kemper.freedesktop.org
Fri May 4 22:30:02 UTC 2018
Module: Mesa
Branch: master
Commit: f2db3be6200410ffd269f8789f3c97292ce03b0f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f2db3be6200410ffd269f8789f3c97292ce03b0f
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Fri Jun 16 18:48:22 2017 -0700
mesa: Add missing support for glFogiv(GL_FOG_DISTANCE_MODE_NV)
Found by inspection, so I made a piglit test too.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Cc: mesa-stable at lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/main/fog.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/main/fog.c b/src/mesa/main/fog.c
index c051aadded..0decf762a9 100644
--- a/src/mesa/main/fog.c
+++ b/src/mesa/main/fog.c
@@ -62,6 +62,7 @@ _mesa_Fogiv(GLenum pname, const GLint *params )
case GL_FOG_END:
case GL_FOG_INDEX:
case GL_FOG_COORDINATE_SOURCE_EXT:
+ case GL_FOG_DISTANCE_MODE_NV:
p[0] = (GLfloat) *params;
break;
case GL_FOG_COLOR:
More information about the mesa-commit
mailing list