[Mesa-dev] [PATCH 1/3] mesa: Restore GL_FOG_COORD_SRC on glPopAttrib(GL_FOG_BIT).
Matt Turner
mattst88 at gmail.com
Tue Feb 5 23:50:05 PST 2013
On Tue, Feb 5, 2013 at 11:09 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> According to the OpenGL 2.1 specification, Table 6.11 (Coloring),
> GL_FOG_COORD_SRC is supposed to be in the fog attribute.
>
> NOTE: This is a candidate for stable branches.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
> src/mesa/main/attrib.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
> index a951283..d31bce4 100644
> --- a/src/mesa/main/attrib.c
> +++ b/src/mesa/main/attrib.c
> @@ -1017,6 +1017,7 @@ _mesa_PopAttrib(void)
> _mesa_Fogf(GL_FOG_END, fog->End);
> _mesa_Fogf(GL_FOG_INDEX, fog->Index);
> _mesa_Fogi(GL_FOG_MODE, fog->Mode);
> + _mesa_Fogi(GL_FOG_COORD_SRC, fog->FogCoordinateSource);
> }
> break;
> case GL_HINT_BIT:
> --
> 1.8.1.2
Series is Reviewed-by: Matt Turner <mattst88 at gmail.com>
More information about the mesa-dev
mailing list