- fixed: The cubemapped skybox renderer did not set up the model matrix properly.

This commit is contained in:
Christoph Oelckers 2014-07-17 10:04:20 +02:00
parent f64428dd2a
commit e0b756e511

View file

@ -319,6 +319,7 @@ static void RenderBox(FTextureID texno, FMaterial * gltex, float x_offset, bool
FMaterial * tex;
gl_RenderState.EnableModelMatrix(true);
gl_RenderState.mModelMatrix.loadIdentity();
if (!sky2)
gl_RenderState.mModelMatrix.rotate(-180.0f+x_offset, glset.skyrotatevector.X, glset.skyrotatevector.Z, glset.skyrotatevector.Y);