From 337563f59977ec834c540af67950e2c578e4f996 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 28 Sep 2010 21:09:13 +0200 Subject: [PATCH] fix vertextextureblend in fakelight --- gl_rmain.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gl_rmain.c b/gl_rmain.c index 35f7176a..828e09b7 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -5115,6 +5115,10 @@ void R_SetupShader_Surface(const vec3_t lightcolorbase, qboolean modellighting, if (r_shadow_glossexact.integer) permutation |= SHADERPERMUTATION_EXACTSPECULARMATH; } + if (permutation & SHADERPERMUTATION_VERTEXTEXTUREBLEND) + R_Mesh_ColorPointer(rsurface.modellightmapcolor4f, rsurface.modellightmapcolor4f_bufferobject, rsurface.modellightmapcolor4f_bufferoffset); + else + R_Mesh_ColorPointer(NULL, 0, 0); } else if (r_glsl_deluxemapping.integer >= 1 && rsurface.uselightmaptexture && r_refdef.scene.worldmodel && r_refdef.scene.worldmodel->brushq3.deluxemapping) { -- 2.39.2