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 committed 2017-10-08 07:18:40 -05:00
1 parent 96f94a2891
commit 9e502bda4d
2 files changed
+6

No files matched your search

+3
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;
}
+3
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;
}