TestJMEDesktop problems on OSX10.5

Ive just run the TestJMEDesktop and i got this error.



Aug 10, 2008 7:28:45 PM com.jmex.awt.swingui.LWJGLImageGraphics update
WARNING: Error updating dirty region: java.awt.Rectangle[x=0,y=0,width=500,height=400] - falling back to updating whole image!
Aug 10, 2008 7:28:45 PM class jmetest.awt.swingui.HelloJMEDesktop start()
SEVERE: Exception in game loop
org.lwjgl.opengl.OpenGLException: Invalid operation (1282)
   at org.lwjgl.opengl.Util.checkGLError(Util.java:54)
   at com.jmex.awt.swingui.LWJGLImageGraphics.update(LWJGLImageGraphics.java:133)
   at com.jmex.awt.swingui.LWJGLImageGraphics.update(LWJGLImageGraphics.java:148)
   at com.jmex.awt.swingui.ImageGraphics.update(ImageGraphics.java:97)
   at com.jmex.awt.swingui.JMEDesktop.draw(JMEDesktop.java:1096)
   at com.jme.scene.Spatial.onDraw(Spatial.java:410)
   at com.jme.scene.Node.draw(Node.java:520)
   at com.jme.scene.Spatial.onDraw(Spatial.java:410)
   at com.jme.renderer.lwjgl.LWJGLRenderer.draw(LWJGLRenderer.java:1199)
   at jmetest.awt.swingui.HelloJMEDesktop.simpleRender(HelloJMEDesktop.java:127)
   at com.jme.app.SimpleGame.render(SimpleGame.java:96)
   at com.jme.app.BaseGame.start(BaseGame.java:84)
   at jmetest.awt.swingui.HelloJMEDesktop.main(HelloJMEDesktop.java:131)
Aug 10, 2008 7:28:45 PM com.jme.app.BaseSimpleGame cleanup
INFO: Cleaning up resources.
Aug 10, 2008 7:28:45 PM com.jme.app.BaseGame start
INFO: Application ending.



The application centralizes the mouse and falls.

That particular issue is related to the removal of apply().  I've added a check to ensure we've uploaded the image to the card before using it.  Unfortunately, it still has mouse issues on my Mac… but it was like that already for me.

doh, so the apply() had its use