No OpenGL context found error in PlayN -


using playn, trying change image on square layer. trying create flip effect change images. doing setting origin of layer center of image, reducing width , changing image when width 0 (image not visible) , increasing width original size.

i using custom timer task play transition.

now have 1 question , 1 issue.

question is there better way acheive trying do

and issue image flips when click image again flip following error

[java] exception in thread "timer-1" java.lang.runtimeexception: no opengl context found in current thread.  [java]   @ org.lwjgl.opengl.glcontext.getcapabilities(glcontext.java:124)  [java]   @ org.lwjgl.opengl.gl11.gldeletetextures(gl11.java:721)  [java]   @ playn.java.javagl20.gldeletetextures(javagl20.java:1050)  [java]   @ playn.core.gl.gl20context.destroytexture(gl20context.java:164)  [java]   @ playn.core.gl.imagegl.cleartexture(imagegl.java:60)  [java]   @ playn.core.gl.imagegl.release(imagegl.java:87)  [java]   @ playn.core.gl.imagelayergl.setimage(imagelayergl.java:74)  [java]   @ playn_poc.core.util.rotationtimertask.run(rotationtimertask.java:51)  [java]   @ java.util.timerthread.mainloop(timer.java:512)  [java]   @ java.util.timerthread.run(timer.java:462) 

you can call draw methods in main thread (the thread calls update()/paint() methods) - if created timer task, assume run on different thread, not have gl context. don't use timer task, or use timer task, throw events, , listen events in main update()/paint() method perform operations.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -