Login  Register

Re: GLException with SWT Demo

Posted by Wade Walker on Nov 12, 2010; 1:59am
URL: https://forum.jogamp.org/GLException-with-SWT-Demo-tp1886152p1886562.html

I've seen this on 32-bit Windows XP myself, but haven't tracked it down fully yet. A comment on my tutorial at http://wadeawalker.wordpress.com/2010/10/09/tutorial-a-cross-platform-workbench-program-using-java-opengl-and-eclipse/ said you can work around it like this:

david wrote
import com.jogamp.opengl.impl.windows.wgl.GDI;

insert this line : GDI.GetDC(glcanvas.handle);
after this line: glcanvas.setCurrent();
He apparently found that at http://www.javagaming.org/index.php?action=printpage;topic=21387.0, but there's no bug entry for it yet. I'll look into this and create a bug if needed.