title: libGDX IllegalStateException on some devices
body: <p>I've launched my new game <code>libGDX</code> on play store and I start getting crash reports. 
  This problem started when I updated to newer version on libgdx 1.9.7.
  Here is my crash report:</p>
  
  <pre><code>  java.lang.IllegalStateException: 
    at com.badlogic.gdx.graphics.glutils.GLFrameBuffer.build (GLFrameBuffer.java:233)     
    at com.badlogic.gdx.graphics.glutils.GLFrameBuffer.&lt;init&gt; (GLFrameBuffer.java:87)
    at com.badlogic.gdx.graphics.glutils.FrameBuffer.&lt;init&gt; (FrameBuffer.java:51)
    at com.badlogic.gdx.graphics.glutils.GLFrameBuffer$FrameBufferBuilder.build (GLFrameBuffer.java:474)
    at com.dui.Screens.DirectedGame.setScreen (DirectedGame.java:57)
    at com.dui.DuiGame.create (DuiGame.java:20)
    at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged (AndroidGraphics.java:311)
    at android.opengl.GLSurfaceView$GLThread.guardedRun (GLSurfaceView.java:1528)
    at android.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:1249)
  </code></pre>
  
  <p>Here is my setScreen method:</p>
  
  <pre><code>    public void setScreen(AbstractGameScreen screen, ScreenTransition screenTransition) {
          int w = Gdx.graphics.getWidth();
          int h = Gdx.graphics.getHeight();
          if (!init) {
  
              GLFrameBuffer.FrameBufferBuilder frameBufferBuilder = new GLFrameBuffer.FrameBufferBuilder(w, h);
              frameBufferBuilder.addColorTextureAttachment(GL30.GL_RGB8, GL30.GL_RGB, GL30.GL_UNSIGNED_BYTE);
  
              currFbo = frameBufferBuilder.build();
              nextFbo = frameBufferBuilder.build();
  
              batch = new SpriteBatch();
              init = true;
          }
          // start new transition
          nextScreen = screen;
          nextScreen.show(); // activate next screen
          nextScreen.resize(w, h);
          nextScreen.render(0); // let next screen update() once
          if (currScreen != null) currScreen.pause();
          nextScreen.pause();
          Gdx.input.setInputProcessor(null); // disable input
          this.screenTransition = screenTransition;
          t = 0;
      }
  </code></pre>
  
  <p>In <code>libgdx</code> <a href="https://libgdx.badlogicgames.com/news.html" rel="nofollow noreferrer">news page</a> there is example for building a custom <code>FrameBuffer</code>, but I'm not sure if I implement it correctly? </p>
  
  <p>Can some one give me solution for my problem ? </p>
  
  <p>Thanks  </p>