Only draw cm_patch/bot debug polygons in world scenes

Fixes debug polygons appearing in HUD head model scene.
This commit is contained in:
Zack Middleton 2017-10-07 10:13:46 -05:00
parent 96f94a2891
commit 9e502bda4d
2 changed files with 6 additions and 0 deletions

View file

@ -1332,6 +1332,9 @@ Visualization aid for movement clipping debugging
====================
*/
void R_DebugGraphics( void ) {
if ( tr.refdef.rdflags & RDF_NOWORLDMODEL ) {
return;
}
if ( !r_debugSurface->integer ) {
return;
}

View file

@ -1715,6 +1715,9 @@ Visualization aid for movement clipping debugging
====================
*/
void R_DebugGraphics( void ) {
if ( tr.refdef.rdflags & RDF_NOWORLDMODEL ) {
return;
}
if ( !r_debugSurface->integer ) {
return;
}