- fixed scaling of skies with unusual dimensions.

This commit is contained in:
Christoph Oelckers 2016-04-01 18:07:18 +02:00
parent f7553fcd51
commit 348c384bb6
2 changed files with 2 additions and 2 deletions

View File

@ -379,7 +379,7 @@ angle_t Clipper::AngleToPseudo(angle_t ang)
//
// ! Returns the pseudoangle between the line p1 to (infinity, p1.y) and the
// line from p1 to p2. The pseudoangle has the property that the ordering of
// points by true angle anround p1 and ordering of points by pseudoangle are the
// points by true angle around p1 and ordering of points by pseudoangle are the
// same.
//
// For clipping exact angles are not needed. Only the ordering matters.

View File

@ -276,7 +276,7 @@ void RenderDome(FMaterial * tex, float x_offset, float y_offset, bool mirror, in
gl_RenderState.mModelMatrix.loadIdentity();
gl_RenderState.mModelMatrix.rotate(-180.0f+x_offset, 0.f, 1.f, 0.f);
float xscale = 1024.f / float(texw);
float xscale = texw < 1024.f ? floor(1024.f / float(texw)) : 1.f;
float yscale = 1.f;
if (texh < 128)
{