From d8767499b46a431a0dd5de4a744a56a669e9e3ce Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 14 Apr 2018 04:26:28 +0000 Subject: [PATCH] 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 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2