Fix the skybox corners moving downwards when rotating the camera with a
factory or research menu open. menu. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1221 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
d11f5c3665
commit
feff0ef74d
|
@ -159,7 +159,6 @@ void pie_DrawSkybox(iView player, iView camera, float rotation, int texpage, int
|
||||||
BOOL oldAlphaTestState = glIsEnabled(GL_ALPHA_TEST);
|
BOOL oldAlphaTestState = glIsEnabled(GL_ALPHA_TEST);
|
||||||
|
|
||||||
// set up matrices and textures
|
// set up matrices and textures
|
||||||
//pie_SetGeometricOffset((iV_SCREEN_WIDTH >> 1), geoOffset);
|
|
||||||
pie_PerspectiveBegin();
|
pie_PerspectiveBegin();
|
||||||
|
|
||||||
// Push identity matrix onto stack
|
// Push identity matrix onto stack
|
||||||
|
|
|
@ -425,8 +425,13 @@ BOOL bPlayerHasHQ = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
pie_Begin3DScene();
|
pie_Begin3DScene();
|
||||||
|
/* Set 3D world origins */
|
||||||
|
pie_SetGeometricOffset((iV_SCREEN_WIDTH>>1),geoOffset);
|
||||||
|
// draw skybox
|
||||||
renderSky();
|
renderSky();
|
||||||
|
// draw terrain
|
||||||
displayTerrain();
|
displayTerrain();
|
||||||
|
|
||||||
pie_BeginInterface();
|
pie_BeginInterface();
|
||||||
updateLightLevels();
|
updateLightLevels();
|
||||||
drawDroidSelections();
|
drawDroidSelections();
|
||||||
|
@ -626,8 +631,6 @@ void displayTerrain(void)
|
||||||
/* SetUpClipping window - to below the backdrop */
|
/* SetUpClipping window - to below the backdrop */
|
||||||
pie_Set2DClip(xOffset,yOffset,psRendSurface->width-xOffset,psRendSurface->height-yOffset);
|
pie_Set2DClip(xOffset,yOffset,psRendSurface->width-xOffset,psRendSurface->height-yOffset);
|
||||||
|
|
||||||
/* Set 3D world origins */
|
|
||||||
pie_SetGeometricOffset((iV_SCREEN_WIDTH>>1),geoOffset);
|
|
||||||
pie_PerspectiveBegin();
|
pie_PerspectiveBegin();
|
||||||
|
|
||||||
/* We haven't yet located which tile mouse is over */
|
/* We haven't yet located which tile mouse is over */
|
||||||
|
|
Loading…
Reference in New Issue