Fixed bloom resizing improperly

This commit is contained in:
Anuken
2020-10-31 11:01:39 -04:00
parent 8d6ea6b197
commit d68ef73407
2 changed files with 3 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ public class Renderer implements ApplicationListener{
public void init(){
planets = new PlanetRenderer();
if(settings.getBool("bloom")){
if(settings.getBool("bloom", !ios)){
setupBloom();
}
}
@@ -121,10 +121,6 @@ public class Renderer implements ApplicationListener{
@Override
public void resize(int width, int height){
if(settings.getBool("bloom")){
setupBloom();
}
fx.resize(width, height);
}
@@ -240,6 +236,7 @@ public class Renderer implements ApplicationListener{
}
if(bloom != null){
bloom.resize(graphics.getWidth() / 4, graphics.getHeight() / 4);
Draw.draw(Layer.bullet - 0.01f, bloom::capture);
Draw.draw(Layer.effect + 0.01f, bloom::render);
}