From: Franck D. <fde...@mi...> - 2002-05-03 15:53:26
|
Hi there, I try to change the screen resolution on the fly. I=92ve read on OpenGL s= ites, that I needed to close my OpenGL context then change the resolution, and after that recreate all my OpenGL Context. But using OpenGL 4 Java, I don=92t know how can I do that. I tried to cal= l a Canvas.cvsDispose() to dispose my OpenGL context, then change the resolution, and after that recreate the OpenGL context, but the result is really strange. It seems that my first OpenGLContext is not really releas= ed, and this gives me some flicking problem (it seems that the openGL and the other windows application want both have the focus, and I can see a swap between each of them at the frequency of my fps). Could anyone give me some tips to cleanly close the GLContext, and how to rebuild it to do it works! I use jdk 1.3.1_01, and GL4Java 2.7.2.0 on a win2k machine, with ATI Rade= on VE card. Thanks in advance. Franck |