]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 0f54d397db7eab28f0522e6c02d12a9a2f5e6e83..4842ee0bf6df64bd18d2d8b982741381213ac774 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)
                {