From c3259fa436cb512bd3c3a446252c8e11a3aec432 Mon Sep 17 00:00:00 2001 From: Aapo Tahkola Date: Mon, 25 Apr 2005 09:50:45 +0000 Subject: [PATCH] Fix as suggested by Ben Skeggs. --- src/mesa/drivers/dri/r300/r300_texprog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/r300/r300_texprog.c b/src/mesa/drivers/dri/r300/r300_texprog.c index bcc101e8377..d38acd840da 100644 --- a/src/mesa/drivers/dri/r300/r300_texprog.c +++ b/src/mesa/drivers/dri/r300/r300_texprog.c @@ -206,12 +206,12 @@ GLuint emit_texenv(r300ContextPtr r300, GLuint tc_reg, GLuint unit) break; case GL_COMBINE: WARN_ONCE("EnvMode == GL_COMBINE unsupported! Help Me!!\n"); - return Cf; + return get_source(ps, GL_TEXTURE, unit, tc_reg); break; default: WARN_ONCE("Unknown EnvMode == %d, name=%d\n", envmode, _mesa_lookup_enum_by_nr(envmode)); - return Cf; + return get_source(ps, GL_TEXTURE, unit, tc_reg); break; } -- 2.30.2