mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-30 23:51:05 +00:00
- fixed: The model matrix must be disabled right after rendering the sky dome, so that it won't get used for the skyfog layer.
This commit is contained in:
parent
4e8a96aa0e
commit
e03696a6c9
1 changed files with 22 additions and 22 deletions
|
@ -393,6 +393,7 @@ void RenderDome(FMaterial * tex, float x_offset, float y_offset, bool mirror, in
|
||||||
|
|
||||||
GLRenderer->mSkyVBO->RenderDome(tex, mode);
|
GLRenderer->mSkyVBO->RenderDome(tex, mode);
|
||||||
gl_RenderState.EnableTextureMatrix(false);
|
gl_RenderState.EnableTextureMatrix(false);
|
||||||
|
gl_RenderState.EnableModelMatrix(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -536,6 +537,5 @@ void GLSkyPortal::DrawContents()
|
||||||
gl_RenderState.ApplyMatrices();
|
gl_RenderState.ApplyMatrices();
|
||||||
glset.lightmode = oldlightmode;
|
glset.lightmode = oldlightmode;
|
||||||
gl_RenderState.SetDepthClamp(oldClamp);
|
gl_RenderState.SetDepthClamp(oldClamp);
|
||||||
gl_RenderState.EnableModelMatrix(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue