projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d350276
)
mesa: Add missing support for glFogiv(GL_FOG_DISTANCE_MODE_NV)
author
Ian Romanick
<ian.d.romanick@intel.com>
Sat, 17 Jun 2017 01:48:22 +0000
(18:48 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 4 May 2018 22:27:44 +0000
(15:27 -0700)
Found by inspection, so I made a piglit test too.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/fog.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fog.c
b/src/mesa/main/fog.c
index c051aaddedcea74b1342772f76b933e7467cc58f..0decf762a999ac71d6856f5bd138574b18d56e24 100644
(file)
--- 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: