Skip to content

Commit b321deb

Browse files
committed
Force redraw of dynamic resolution atmosphere on window resize
1 parent 787a894 commit b321deb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/core/modules/AtmosphereShowMySky.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,10 @@ void AtmosphereShowMySky::computeColor(StelCore* core, const double JD, const Pl
796796
}
797797
const auto width=viewport[2], height=viewport[3];
798798
if(width!=prevWidth_ || height!=prevHeight_)
799+
{
799800
resizeRenderTarget(width, height);
801+
dynResTimer=0;
802+
}
800803

801804
if(location.altitude != lastUsedAltitude_)
802805
{

0 commit comments

Comments
 (0)