From: lordhavoc Date: Mon, 3 Jun 2002 03:02:21 +0000 (+0000) Subject: make r_render skip the 3D rendering code (I forgot this before? ick) X-Git-Tag: RELEASE_0_2_0_RC1~480 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=188909bbb1e525a0e101d508d8e6daaa0b5d54b8;p=xonotic%2Fdarkplaces.git make r_render skip the 3D rendering code (I forgot this before? ick) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1894 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index 7b272fd1..dad2ad1f 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -784,6 +784,14 @@ void R_Mesh_Render(void) if (!currentmesh) return; + if (!r_render.integer) + { + currentmesh = 0; + currenttriangle = 0; + currentvertex = 0; + return; + } + CHECKGLERROR GL_UpdateFarclip();