From: Ian Romanick Date: Sat, 17 Jun 2017 01:48:22 +0000 (-0700) Subject: mesa: Add missing support for glFogiv(GL_FOG_DISTANCE_MODE_NV) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2db3be6200410ffd269f8789f3c97292ce03b0f;p=mesa.git 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 Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/fog.c b/src/mesa/main/fog.c index c051aaddedc..0decf762a99 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: