[Mesa-stable] [PATCH 2/5] mesa: Add missing support for glFogiv(GL_FOG_DISTANCE_MODE_NV)

Ian Romanick idr at freedesktop.org
Thu Apr 26 21:28:40 UTC 2018


From: Ian Romanick <ian.d.romanick at intel.com>

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
---
 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



More information about the mesa-stable mailing list