mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 13:31:07 +00:00
- fixed: The cubemapped skybox renderer did not set up the model matrix properly.
This commit is contained in:
parent
f64428dd2a
commit
e0b756e511
1 changed files with 1 additions and 0 deletions
|
@ -319,6 +319,7 @@ static void RenderBox(FTextureID texno, FMaterial * gltex, float x_offset, bool
|
||||||
FMaterial * tex;
|
FMaterial * tex;
|
||||||
|
|
||||||
gl_RenderState.EnableModelMatrix(true);
|
gl_RenderState.EnableModelMatrix(true);
|
||||||
|
gl_RenderState.mModelMatrix.loadIdentity();
|
||||||
|
|
||||||
if (!sky2)
|
if (!sky2)
|
||||||
gl_RenderState.mModelMatrix.rotate(-180.0f+x_offset, glset.skyrotatevector.X, glset.skyrotatevector.Z, glset.skyrotatevector.Y);
|
gl_RenderState.mModelMatrix.rotate(-180.0f+x_offset, glset.skyrotatevector.X, glset.skyrotatevector.Z, glset.skyrotatevector.Y);
|
||||||
|
|
Loading…
Reference in a new issue