Login  Register

Re: Multiple GlCanvases sharing ogl data (textures, vbos etc)

Posted by GiGurra on Aug 05, 2011; 5:58pm
URL: https://forum.jogamp.org/Multiple-GlCanvases-sharing-ogl-data-textures-vbos-etc-tp3220404p3229417.html

Thanks, I solved it by letting the program be aware of what windows are still active. If all windows are killed then all opengl "pointers" are cleared from java-side shared state. When creating a new window I check if there are any alive and reference that context as a sharewith. Little bit of extra bookkeeping but worth it for the performance gains :).