]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix black models in fixed function rendering path
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 12 Jan 2010 09:54:07 +0000 (09:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 12 Jan 2010 09:54:07 +0000 (09:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9830 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index e170d3c3271a2231abf87c19c5e52e95bd90c51b..3c6bd98f276f885e965eaa9beed76c1741c624a0 100644 (file)
@@ -10403,7 +10403,7 @@ static void R_DrawTextureSurfaceList_GL13(int texturenumsurfaces, const msurface
                {
                case TEXTURELAYERTYPE_LITTEXTURE:
                        // single-pass lightmapped texture with 2x rgbscale
-                       //R_Mesh_TexBind(0, r_texture_white);
+                       R_Mesh_TexBind(0, r_texture_white);
                        R_Mesh_TexMatrix(0, NULL);
                        R_Mesh_TexCombine(0, GL_MODULATE, GL_MODULATE, 1, 1);
                        R_Mesh_TexCoordPointer(0, 2, rsurface.modeltexcoordlightmap2f, rsurface.modeltexcoordlightmap2f_bufferobject, rsurface.modeltexcoordlightmap2f_bufferoffset);
@@ -10508,7 +10508,7 @@ static void R_DrawTextureSurfaceList_GL11(int texturenumsurfaces, const msurface
                        {
                                // two-pass lit texture with 2x rgbscale
                                // first the lightmap pass
-                               //R_Mesh_TexBind(0, r_texture_white);
+                               R_Mesh_TexBind(0, r_texture_white);
                                R_Mesh_TexMatrix(0, NULL);
                                R_Mesh_TexCombine(0, GL_MODULATE, GL_MODULATE, 1, 1);
                                R_Mesh_TexCoordPointer(0, 2, rsurface.modeltexcoordlightmap2f, rsurface.modeltexcoordlightmap2f_bufferobject, rsurface.modeltexcoordlightmap2f_bufferoffset);