From: Ian Romanick <[email protected]>

Found by inspection, so I made a piglit test too.

Signed-off-by: Ian Romanick <[email protected]>
Cc: [email protected]
---
 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.14.3

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to