[ioquake3] 25/33: Only draw cm_patch/bot debug polygons in world scenes
Simon McVittie
smcv at debian.org
Mon Oct 30 14:00:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit 9e502bda4d5ce7ca57800e94ad8c7478f543d7b8
Author: Zack Middleton <zack at cloemail.com>
Date: Sat Oct 7 10:13:46 2017 -0500
Only draw cm_patch/bot debug polygons in world scenes
Fixes debug polygons appearing in HUD head model scene.
---
code/renderergl1/tr_main.c | 3 +++
code/renderergl2/tr_main.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/code/renderergl1/tr_main.c b/code/renderergl1/tr_main.c
index 0e38831..09559a2 100644
--- a/code/renderergl1/tr_main.c
+++ b/code/renderergl1/tr_main.c
@@ -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;
}
diff --git a/code/renderergl2/tr_main.c b/code/renderergl2/tr_main.c
index 1f66d90..02f7d48 100644
--- a/code/renderergl2/tr_main.c
+++ b/code/renderergl2/tr_main.c
@@ -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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list