mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 21:11:52 +00:00
- fixed scaling of skies with unusual dimensions.
This commit is contained in:
parent
f7553fcd51
commit
348c384bb6
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue