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);
|
||||
|
||||
// set up matrices and textures
|
||||
//pie_SetGeometricOffset((iV_SCREEN_WIDTH >> 1), geoOffset);
|
||||
pie_PerspectiveBegin();
|
||||
|
||||
// Push identity matrix onto stack
|
||||
|
|
|
@ -425,8 +425,13 @@ BOOL bPlayerHasHQ = FALSE;
|
|||
}
|
||||
|
||||
pie_Begin3DScene();
|
||||
/* Set 3D world origins */
|
||||
pie_SetGeometricOffset((iV_SCREEN_WIDTH>>1),geoOffset);
|
||||
// draw skybox
|
||||
renderSky();
|
||||
// draw terrain
|
||||
displayTerrain();
|
||||
|
||||
pie_BeginInterface();
|
||||
updateLightLevels();
|
||||
drawDroidSelections();
|
||||
|
@ -626,8 +631,6 @@ void displayTerrain(void)
|
|||
/* SetUpClipping window - to below the backdrop */
|
||||
pie_Set2DClip(xOffset,yOffset,psRendSurface->width-xOffset,psRendSurface->height-yOffset);
|
||||
|
||||
/* Set 3D world origins */
|
||||
pie_SetGeometricOffset((iV_SCREEN_WIDTH>>1),geoOffset);
|
||||
pie_PerspectiveBegin();
|
||||
|
||||
/* We haven't yet located which tile mouse is over */
|
||||
|
|
Loading…
Reference in New Issue