bitbrain / braingdx

:video_game: Game jam framework based on libgdx.
Apache License 2.0
84 stars 1 forks source link

IllegalStateException: frame buffer couldn't be constructed: incomplete attachment 🐛 #131

Closed bitbrain closed 5 years ago

bitbrain commented 6 years ago

Resizing a window to size of 0 causes exception:

Exception in thread "LWJGL Application" java.lang.IllegalStateException: frame buffer couldn't be constructed: incomplete attachment
    at com.badlogic.gdx.graphics.glutils.GLFrameBuffer.build(GLFrameBuffer.java:247)
    at com.badlogic.gdx.graphics.glutils.FrameBuffer.<init>(FrameBuffer.java:75)
    at com.badlogic.gdx.graphics.glutils.FrameBuffer.<init>(FrameBuffer.java:57)
    at de.bitbrain.braingdx.graphics.pipeline.CombinedRenderPipeline$2.create(CombinedRenderPipeline.java:88)
    at de.bitbrain.braingdx.graphics.pipeline.CombinedRenderPipeline.resize(CombinedRenderPipeline.java:121)
    at de.bitbrain.braingdx.GameContext2DImpl.resize(GameContext2DImpl.java:217)
    at de.bitbrain.braingdx.screens.AbstractScreen.resize(AbstractScreen.java:81)
    at com.badlogic.gdx.Game.resize(Game.java:51)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:205)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)