- 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:
Christoph Oelckers 2016-08-14 20:11:46 +02:00
parent 4e8a96aa0e
commit e03696a6c9

View file

@ -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);
} }