Render fail on BasicGameState

Hi,



first, i must say english is not my main language…so sorry   :|



I tried to put The Island example in a BasicGameState (or CameraGameState, same error) with JMEDesktop DnD example. I keep the MenuState before GameState like in example.

After some corrected that works (except water,<- is black), i see the island, my character, the sky, jinternal frames  but only if i dont renderPass the WaterRenderPass, if i renderPass it here the error  :



06-ao

It works when i add this if to the 662nd line of LWJGLTextureRenderer. Maybe a bad idea, dont know…


 if (active == 1) {
           if(parentRenderer.getBackgroundColor() != null)
               GL11.glClearColor(parentRenderer.getBackgroundColor().r,
                       parentRenderer.getBackgroundColor().g, parentRenderer
                               .getBackgroundColor().b, parentRenderer
                               .getBackgroundColor().a);
            EXTFramebufferObject.glBindFramebufferEXT( EXTFramebufferObject.GL_FRAMEBUFFER_EXT, 0 );

        }
        active--;