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/render/Glass.cpp | |
parent | update librw (diff) | |
download | re3-9db87fc6365ee76f3281ca2474f92ec4f155920d.tar re3-9db87fc6365ee76f3281ca2474f92ec4f155920d.tar.gz re3-9db87fc6365ee76f3281ca2474f92ec4f155920d.tar.bz2 re3-9db87fc6365ee76f3281ca2474f92ec4f155920d.tar.lz re3-9db87fc6365ee76f3281ca2474f92ec4f155920d.tar.xz re3-9db87fc6365ee76f3281ca2474f92ec4f155920d.tar.zst re3-9db87fc6365ee76f3281ca2474f92ec4f155920d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Glass.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/Glass.cpp b/src/render/Glass.cpp index 3b6fbd46..ede06ba1 100644 --- a/src/render/Glass.cpp +++ b/src/render/Glass.cpp @@ -261,6 +261,8 @@ CGlass::Render(void) RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void *)rwBLENDONE); RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)TRUE); + PUSH_RENDERGROUP("CGlass::Render"); + for ( int32 i = 0; i < NUM_GLASSPANES; i++ ) { if ( aGlassPanes[i].m_bActive ) @@ -270,6 +272,8 @@ CGlass::Render(void) for ( uint32 i = 0; i < NumGlassEntities; i++ ) RenderEntityInGlass(apEntitiesToBeRendered[i]); + POP_RENDERGROUP(); + NumGlassEntities = 0; RenderHiLightPolys(); |