From: havoc Date: Fri, 21 Dec 2007 11:05:34 +0000 (+0000) Subject: fix bug in RSurf_ActiveWorldEntity (now sets basepolygonoffset fields) X-Git-Tag: xonotic-v0.1.0preview~2661 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=72f7e5e8dab426a8891d0f0a964867fdb75dc6c9;p=xonotic%2Fdarkplaces.git fix bug in RSurf_ActiveWorldEntity (now sets basepolygonoffset fields) added a fixme note git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7830 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 1a8a4999..280cedfb 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -4320,6 +4320,8 @@ void RSurf_ActiveWorldEntity(void) rsurface.frameblend[2].lerp = 0; rsurface.frameblend[3].frame = 0; rsurface.frameblend[3].lerp = 0; + rsurface.basepolygonfactor = r_refdef.polygonfactor; + rsurface.basepolygonoffset = r_refdef.polygonoffset; rsurface.modelvertex3f = model->surfmesh.data_vertex3f; rsurface.modelvertex3f_bufferobject = model->surfmesh.vbo; rsurface.modelvertex3f_bufferoffset = model->surfmesh.vbooffset_vertex3f; @@ -5548,6 +5550,7 @@ static void R_DrawTextureSurfaceList_GL20(int texturenumsurfaces, msurface_t **t R_Mesh_TexCoordPointer(2, 3, rsurface.tvector3f, rsurface.tvector3f_bufferobject, rsurface.tvector3f_bufferoffset); R_Mesh_TexCoordPointer(3, 3, rsurface.normal3f, rsurface.normal3f_bufferobject, rsurface.normal3f_bufferoffset); R_Mesh_TexCoordPointer(4, 2, rsurface.modeltexcoordlightmap2f, rsurface.modeltexcoordlightmap2f_bufferobject, rsurface.modeltexcoordlightmap2f_bufferoffset); + // FIXME MOVE THIS TO A UNIFORM GL_Color(rsurface.texture->currentlayers[0].color[0], rsurface.texture->currentlayers[0].color[1], rsurface.texture->currentlayers[0].color[2], rsurface.texture->currentlayers[0].color[3]); if (r_glsl_permutation->loc_Texture_Refraction >= 0)