mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +00:00
Fix ssao being applied to skybox portals
This commit is contained in:
parent
355bbf4829
commit
38ad6ce6b7
3 changed files with 4 additions and 3 deletions
|
@ -79,7 +79,8 @@ enum
|
||||||
{
|
{
|
||||||
DM_MAINVIEW,
|
DM_MAINVIEW,
|
||||||
DM_OFFSCREEN,
|
DM_OFFSCREEN,
|
||||||
DM_PORTAL
|
DM_PORTAL,
|
||||||
|
DM_SKYPORTAL
|
||||||
};
|
};
|
||||||
|
|
||||||
class FGLRenderer
|
class FGLRenderer
|
||||||
|
|
|
@ -655,7 +655,7 @@ void GLSkyboxPortal::DrawContents()
|
||||||
SaveMapSection();
|
SaveMapSection();
|
||||||
currentmapsection[mapsection >> 3] |= 1 << (mapsection & 7);
|
currentmapsection[mapsection >> 3] |= 1 << (mapsection & 7);
|
||||||
|
|
||||||
GLRenderer->DrawScene(DM_PORTAL);
|
GLRenderer->DrawScene(DM_SKYPORTAL);
|
||||||
portal->mFlags &= ~PORTSF_INSKYBOX;
|
portal->mFlags &= ~PORTSF_INSKYBOX;
|
||||||
inskybox = false;
|
inskybox = false;
|
||||||
gl_RenderState.SetDepthClamp(oldclamp);
|
gl_RenderState.SetDepthClamp(oldclamp);
|
||||||
|
|
|
@ -491,7 +491,7 @@ void FGLRenderer::DrawScene(int drawmode)
|
||||||
{
|
{
|
||||||
ssao_portals_available = 0;
|
ssao_portals_available = 0;
|
||||||
}
|
}
|
||||||
else if (ssao_portals_available > 0)
|
else if (drawmode == DM_PORTAL && ssao_portals_available > 0)
|
||||||
{
|
{
|
||||||
applySSAO = true;
|
applySSAO = true;
|
||||||
ssao_portals_available--;
|
ssao_portals_available--;
|
||||||
|
|
Loading…
Reference in a new issue