Check r_showtris cvar as a float rather than integer - can now use fractional brightness.
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 14 Apr 2018 04:26:28 +0000 (04:26 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 14 Apr 2018 04:26:28 +0000 (04:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12392 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 0f54d39..4842ee0 100644 (file)
@@ -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)
                {