IntBuffer is not direct

Uh oh…it would seem something has changed in LWJGL that causes screenshots to no longer work:


INFO: Taking screenshot: SimpleGameScreenShot.png
java.lang.IllegalArgumentException: IntBuffer is not direct
   at org.lwjgl.BufferChecks.checkDirect(BufferChecks.java:158)
   at org.lwjgl.BufferChecks.checkBuffer(BufferChecks.java:215)
   at org.lwjgl.opengl.GL11.glReadPixels(GL11.java:2279)
   at com.jme.renderer.lwjgl.LWJGLRenderer.grabScreenContents(LWJGLRenderer.java:591)
   at com.jme.renderer.lwjgl.LWJGLRenderer.takeScreenShot(LWJGLRenderer.java:552)
   at com.jme.app.BaseSimpleGame.update(BaseSimpleGame.java:248)
   at com.jme.app.SimpleGame.update(SimpleGame.java:68)
   at com.jme.app.BaseGame.start(BaseGame.java:66)
   at jmetest.base.TestSimpleGame.main(TestSimpleGame.java:50)



It looks like they are not using a direct buffer anymore.

Banter forces sounds like something out of Starwars.



"The Banter Forces are attacking Vookihjyyyeasja as you commanded my Lord!"

I think you’re thinking of a Bantha:



So fix it?



Or did they finally remove your CVS access? (uhoh… must mean I'm next :P)



(yes it's a joke. Still, you should fix it…)

No need to be a jerk.  You might smell like crap, but there's not need to act like it also.  :stuck_out_tongue:



I wanted to drop a message here to let people know about it…I don't have time to look into it right now and thought maybe another developer might have some more insight as to why this has cropped up.

New policy around here, "Find the bug you have to fix it"?  :stuck_out_tongue:

…I fixed it and checked it in…I'm going llama tipping tonight though.  :stuck_out_tongue:

Good. Now change it to use BufferUtils instead of direct allocation.



DO I HAVE TO DO EVERYTHING AROUND HERE?

I'm about to smack you down for that!  :stuck_out_tongue:

Can you feel the love!

He's just mad from all the llama jokes. :wink:

Yes. Stupid jokes about llamas => rude posts + forced contribution of bugfixes.



Let it be known throughout the community!

llama said:

Yes. Stupid jokes about llamas => rude posts + forced contribution of bugfixes.

Let it be known throughout the community!


You mean clever jokes about llamas.  :P

Clever for such a lowly creature as a frog, perhaps…  }:-@

hehe  XD

renanse said:




What's that supposed to mean?  :P

the… banter forces my eyes to go nuts

Now I have ANOTHER reason to do this. :slight_smile:

darkfrog said:

I think you're thinking of a Bantha:


Me too, thats why I said the Banter Force sounds like something out of Starwars  :P