From df3444bf14f8f34f589a48e9a0352fa2ecba4f37 Mon Sep 17 00:00:00 2001 From: cholleme <> Date: Sun, 2 Mar 2003 20:23:52 +0000 Subject: [PATCH] Fixed the wireframe mode hanging when returning back to normal rendering --- gl_rsurf.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index 8fa2390..23b0388 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -1523,6 +1523,15 @@ void DrawTextureChains (void) } } + if (gl_wireframe.value) { + for (i=0 ; inummapshaders ; i++) + { + cl.worldmodel->mapshaders[i].meshchain = NULL; + cl.worldmodel->mapshaders[i].texturechain = NULL; + } + } + + //R_DisableVertexTable(VERTEX_TEXTURE | VERTEX_LIGHTMAP); GL_SelectTexture(GL_TEXTURE1_ARB); GL_DisableMultitexture(); @@ -2707,7 +2716,8 @@ void GL_BuildLightmaps (void) for (i=0 ; inumlightmaps ; i++) { - Con_Printf("Lightmap %i\n",i); + + //Con_Printf("Lightmap %i\n",i); GL_Bind(lightmap_textures + i); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);