From: Rudolf Polzer Date: Tue, 28 Sep 2010 19:09:13 +0000 (+0200) Subject: fix vertextextureblend in fakelight X-Git-Tag: xonotic-v0.1.0preview~149 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=337563f59977ec834c540af67950e2c578e4f996;p=xonotic%2Fdarkplaces.git fix vertextextureblend in fakelight --- 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) {