You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please never do that. I had to remove this kind of thing from several engines as it causes tons of troubles. It only works when the GL instance is never invalidated. Please never store a GL instance except in a LOCAL variable like I do in all reliable APIs based on JOGL 2.
N.B: This kind of weak construct seems to appear in several places in NiftyGUI.
The text was updated successfully, but these errors were encountered:
Hi
The JOGL 2 renderer of the version 1.4 stores GL instances that might become invalid at any time which is a very bad practice:
https://github.com/void256/nifty-gui/blob/1.4/nifty-renderer-jogl2/src/main/java/de/lessvoid/nifty/renderer/jogl/render/JoglGL.java#L19
GL2 gl2 = GLContext.getCurrentGL().getGL2();
Please never do that. I had to remove this kind of thing from several engines as it causes tons of troubles. It only works when the GL instance is never invalidated. Please never store a GL instance except in a LOCAL variable like I do in all reliable APIs based on JOGL 2.
N.B: This kind of weak construct seems to appear in several places in NiftyGUI.
The text was updated successfully, but these errors were encountered: