I tried to get depth buffer using
Texture.setRTTSource(Texture.RTT_SOURCE_DEPTH);
About 10 or more machines are tested, only two machine fails.
org.lwjgl.opengl.OpenGLException: Invalid framebuffer operation (1286)
at org.lwjgl.opengl.Util.checkGLError(Util.java:53)
at org.lwjgl.opengl.Display.swapBuffers(Display.java:591)
at org.lwjgl.opengl.Display.update(Display.java:609)
at com.jme.renderer.lwjgl.LWJGLRenderer.displayBackBuffer(LWJGLRenderer.java:518)
at com.jme.app.BaseGame.start(BaseGame.java:85)
at jmetest.renderer.TestRenderToTexture.main(TestRenderToTexture.java:79)
Accidently the two machines have something in common.
It is the ATI Radeon gfx card.
All the other machines succeeding in the test run on Geforce gfx card.
It is tested by appending the code below to TestRenderToTexture.java
fakeTex.setRTTSource(Texture.RTT_SOURCE_DEPTH); (Line 173)
gfx card which failed the test.
- ATI Radeon HD 3850 (new gfx card)
- ATI Radeon X800 GTO (old gfx card)
I appreciate for any help.