diff options
author | aap <aap@papnet.eu> | 2021-02-18 12:21:52 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-02-18 12:21:52 +0100 |
commit | 996772faf2b7ed17269af194c6d9dcbdb37732fe (patch) | |
tree | cfb4d76317a169f665bf1f500e36d4aa2c0e54ec /src/render/Coronas.cpp | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
download | re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.gz re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.bz2 re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.lz re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.xz re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.zst re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.zip |
Diffstat (limited to 'src/render/Coronas.cpp')
-rw-r--r-- | src/render/Coronas.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render/Coronas.cpp b/src/render/Coronas.cpp index e3d3416c..8b137aad 100644 --- a/src/render/Coronas.cpp +++ b/src/render/Coronas.cpp @@ -249,6 +249,8 @@ CCoronas::Render(void) int i, j; int screenw, screenh; + PUSH_RENDERGROUP("CCoronas::Render"); + screenw = RwRasterGetWidth(RwCameraGetRaster(Scene.camera)); screenh = RwRasterGetHeight(RwCameraGetRaster(Scene.camera)); @@ -432,6 +434,8 @@ CCoronas::Render(void) RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void*)FALSE); RwRenderStateSet(rwRENDERSTATEZTESTENABLE, (void*)TRUE); RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)TRUE); + + POP_RENDERGROUP(); } void @@ -442,6 +446,8 @@ CCoronas::RenderReflections(void) CEntity *entity; if(CWeather::WetRoads > 0.0f){ + PUSH_RENDERGROUP("CCoronas::RenderReflections"); + CSprite::InitSpriteBuffer(); RwRenderStateSet(rwRENDERSTATEFOGENABLE, (void*)FALSE); @@ -517,6 +523,8 @@ CCoronas::RenderReflections(void) RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void*)FALSE); RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)TRUE); RwRenderStateSet(rwRENDERSTATEZTESTENABLE, (void*)TRUE); + + POP_RENDERGROUP(); }else{ for(i = 0; i < NUMCORONAS; i++) aCoronas[i].renderReflection = false; |