From d322810e13f8fed7d7830e5ba9ca02bd9fd72340 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 27 May 2005 14:44:14 +0000 Subject: properly pop the GL_TEXTURE_GEN_ enable state --- src/mesa/main/attrib.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index da6011c1cef..21e22ccedd0 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -649,6 +649,14 @@ pop_texture_group(GLcontext *ctx, const struct gl_texture_attrib *texAttrib) _mesa_TexGenfv(GL_T, GL_EYE_PLANE, unit->EyePlaneT); _mesa_TexGenfv(GL_R, GL_EYE_PLANE, unit->EyePlaneR); _mesa_TexGenfv(GL_Q, GL_EYE_PLANE, unit->EyePlaneQ); + _mesa_set_enable(ctx, GL_TEXTURE_GEN_S, + ((unit->TexGenEnabled & S_BIT) ? GL_TRUE : GL_FALSE)); + _mesa_set_enable(ctx, GL_TEXTURE_GEN_T, + ((unit->TexGenEnabled & T_BIT) ? GL_TRUE : GL_FALSE)); + _mesa_set_enable(ctx, GL_TEXTURE_GEN_R, + ((unit->TexGenEnabled & R_BIT) ? GL_TRUE : GL_FALSE)); + _mesa_set_enable(ctx, GL_TEXTURE_GEN_Q, + ((unit->TexGenEnabled & Q_BIT) ? GL_TRUE : GL_FALSE)); if (ctx->Extensions.EXT_texture_lod_bias) { _mesa_TexEnvf(GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, unit->LodBias); -- cgit v1.2.3