diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-09-17 06:13:17 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2019-09-17 19:06:51 +0200 |
commit | 05a7da627959afef2198f2036f4144e3d8abfbda (patch) | |
tree | cee876c0abfcb919d314ac973ded26b62e6c54ec /src | |
parent | e0a85fae01287fb06c0d29fc309067d18286b100 (diff) | |
download | minetest-05a7da627959afef2198f2036f4144e3d8abfbda.tar.gz minetest-05a7da627959afef2198f2036f4144e3d8abfbda.tar.bz2 minetest-05a7da627959afef2198f2036f4144e3d8abfbda.zip |
Improve undersampling settings
The setting now accepts values between 1 and 8 in the
Advanced Settings menu.
Values 0 and 1 now behave the same way (setting it to 1 won't
disable MSAA anymore), so there's no need to expose 0 as a value.
This closes #8939.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/render/plain.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/render/plain.cpp b/src/client/render/plain.cpp index cc17c98c3..a130a14eb 100644 --- a/src/client/render/plain.cpp +++ b/src/client/render/plain.cpp @@ -35,7 +35,7 @@ RenderingCorePlain::RenderingCorePlain( void RenderingCorePlain::initTextures() { - if (!scale) + if (scale <= 1) return; v2u32 size{scaledown(scale, screensize.X), scaledown(scale, screensize.Y)}; lowres = driver->addRenderTargetTexture( @@ -44,21 +44,21 @@ void RenderingCorePlain::initTextures() void RenderingCorePlain::clearTextures() { - if (!scale) + if (scale <= 1) return; driver->removeTexture(lowres); } void RenderingCorePlain::beforeDraw() { - if (!scale) + if (scale <= 1) return; driver->setRenderTarget(lowres, true, true, skycolor); } void RenderingCorePlain::upscale() { - if (!scale) + if (scale <= 1) return; driver->setRenderTarget(0, true, true); v2u32 size{scaledown(scale, screensize.X), scaledown(scale, screensize.Y)}; |