diff options
author | aap <aap@papnet.eu> | 2021-02-18 12:21:47 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-02-18 12:21:47 +0100 |
commit | 9db87fc6365ee76f3281ca2474f92ec4f155920d (patch) | |
tree | 1b60c229e7ac6212d1d96025d32473c9ec9f6eef /src/rw | |
parent | 1a429bb3c40f2f407a29001b743486e51a3896b8 (diff) |
add debug render groups
Diffstat (limited to 'src/rw')
-rw-r--r-- | src/rw/VisibilityPlugins.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp index 051a6883..9ea5b11c 100644 --- a/src/rw/VisibilityPlugins.cpp +++ b/src/rw/VisibilityPlugins.cpp @@ -293,6 +293,7 @@ CVisibilityPlugins::RenderFadingEntities(void) continue; #endif mi = (CSimpleModelInfo *)CModelInfo::GetModelInfo(e->GetModelIndex()); + #ifdef FIX_BUGS if(mi->GetModelType() == MITYPE_SIMPLE && mi->m_noZwrite) #else @@ -308,7 +309,9 @@ CVisibilityPlugins::RenderFadingEntities(void) DeActivateDirectional(); SetAmbientColours(); e->bImBeingRendered = true; + PUSH_RENDERGROUP(mi->GetModelName()); RenderFadingAtomic((RpAtomic*)e->m_rwObject, node->item.sort); + POP_RENDERGROUP(); e->bImBeingRendered = false; }else CRenderer::RenderOneNonRoad(e); |