From d592a4f6474f7c591c0fb7aee59ec7f31dffb65b Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 30 Sep 2004 22:46:24 +0000 Subject: [PATCH] hmm. is that better at all? git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@269 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_ppl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/gl/gl_ppl.c b/engine/gl/gl_ppl.c index 86eca481e..038dcd1ee 100644 --- a/engine/gl/gl_ppl.c +++ b/engine/gl/gl_ppl.c @@ -338,6 +338,8 @@ static void PPL_BaseChain_NoBump_2TMU(msurface_t *s, texture_t *tex) PPL_FlushArrays(); vi = s->lightmaptexturenum; + if (vi>=0) + { GL_BindType(GL_TEXTURE_2D, lightmap_textures[vi] ); if (lightmap[vi]->modified) { @@ -351,6 +353,7 @@ static void PPL_BaseChain_NoBump_2TMU(msurface_t *s, texture_t *tex) theRect->h = 0; theRect->w = 0; } + } } PPL_GenerateArrays(s); @@ -584,6 +587,8 @@ static void PPL_BaseChain_Bump_4TMU(msurface_t *s, texture_t *tex) #ifdef SPECULAR //Draw a texture chain with specular exponant 1. +//erm... +//this uses the wrong stuff to work on gf4tis. /* static void PPL_BaseChain_Specular_4TMU(msurface_t *first, texture_t *tex) { @@ -827,7 +832,7 @@ void PPL_LoadSpecularFragmentProgram(void) //we have diffuse and specular - wahoo //combine then halve. "ADD diff.rgb, diff, spec;\n" - "MUL diff.rgb, diff, half;\n" + //"MUL diff.rgb, diff, half;\n" //multiply by inverse lm and output the result.