]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix vertextextureblend in fakelight
authorRudolf Polzer <divverent@alientrap.org>
Tue, 28 Sep 2010 19:09:13 +0000 (21:09 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 28 Sep 2010 19:09:13 +0000 (21:09 +0200)
gl_rmain.c

index 35f7176a63f4cba6d482b4947a591c20977e8cc2..828e09b715dacaea396c014e07275b5e4054a45c 100644 (file)
@@ -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)
                {