[sdljava-users] glew initialisation too early in gljava
Status: Beta
Brought to you by:
ivan_ganza
From: Gregor <Gre...@gm...> - 2005-08-29 21:50:56
|
Hi! I discovered that the initialisation of glew happens far to early in gljava, thus crashing any program that wants to use it. The reason is that newer nvidia drivers (correctly) don't return a value on glGetString(GL_VERSION) unless there is a valid glx context from which this function is called. See glxinfo as an example on how it should be done. The glew initialisation sits in a static block which is executed on program startup, far too early to give the program a chance to create a context. Maybe you should move that to a user-callable init function instead of executing it automatically? Regards, Gregor |