Creating RenderState in another thread

hi, everyone.



when i create a GLSLShaderObjectsState object in another thread, not the render thread, the HotSpot Virtual Machine will be shut down by an error with the information of "#

An unexpected error has been detected by HotSpot Virtual Machine:

#

#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00bdd682, pid=4052, tid=1404

#

Java VM: Java HotSpot™ Client VM (1.5.0_06-b05 mixed mode, sharing)

Problematic frame:

j  com.jme.scene.state.lwjgl.LWJGLShaderObjectsState.isSupported()Z+0

… ".


how to fix the priblem?

use the gametaskqueuemanager to create it in the render thread instead