From: havoc Date: Sat, 14 Apr 2018 04:26:28 +0000 (+0000) Subject: Check r_showtris cvar as a float rather than integer - can now use fractional brightness. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d8767499b46a431a0dd5de4a744a56a669e9e3ce;p=xonotic%2Fdarkplaces.git Check r_showtris cvar as a float rather than integer - can now use fractional brightness. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12392 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 0f54d397..4842ee0b 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -12042,7 +12042,7 @@ static void R_DrawDebugModel(void) GL_PolygonOffset(r_refdef.polygonfactor, r_refdef.polygonoffset); #ifndef USE_GLES2 - if (r_showtris.integer && qglPolygonMode) + if (r_showtris.value > 0 && qglPolygonMode) { if (r_showdisabledepthtest.integer) {