From f2db3be6200410ffd269f8789f3c97292ce03b0f Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 16 Jun 2017 18:48:22 -0700 Subject: [PATCH] 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 --- 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 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: -- 2.30.2