[win2k, lwjgl 0.7]
ForYourInformation about Matrox G400 problem and resolution. This may help you to find out why Matrox card is not easy to get play well.
-
Run RainingDay demo from http://chman-area.tuxfamily.org
C:\projects\java\games\J3d\lwjgl\RainingDay>c:\j2sdk1.4.2\bin\java.exe -cp …\li
b\lwjgl.jar;. -Djava.library.path=…\lib RainingDay
Selecting NT display mode check
Querying Matrox Millennium G400 - English device
-> result: we are back in dos prompt without any exceptions. Now, we need to go through source code to see what’s wrong…
-
Comment Display.getAvailableDisplayModes() method
After System.out analyze, I comment getAvailableDisplayModes() method in init_lwjgl method.
Then manually set a window params, not really idea what all params should be, but this one seems to run.
Window.create(“Lwjgl Test”, 50, 50, 640, 480, 16, 0, 8, 0);
-> Result: will give a core dump and errors from .dll library
- Comment GL.wglSwapIntervalEXT(1) method
More analyzing and I comment the following block in init_gl() method.
// if(GLCaps.WGL_EXT_swap_control) {
// GL.wglSwapIntervalEXT(1);
// }
-> RESULTS: Demo started first time in Matrox G400 suxor card. I made a short google. SwapInterval requires “WGL_EXT_swap_control” extension.
GLInfo.exe (Tom Nuydens (delphi3d@gamedeveloper.org)) tool can list all GL capabilities. It says my G400 has GL_EXT_swap_control extension, but still it crashes if is called from the app.
I could not find gl.wglSwapInterval method anymore in lwgl v0.7 library.
-
Can anyone say what am I missing now if always comment that row from each demo?
-
And why is it, that DisplayModes iterator crashes without any coredumps or extensions?
-
Last major problem: If I move a focus away from lwjgl window to an another program, then lwgjl frame is freezed. I cannot switch back to it, all can I do is just kill it.