Thnaks now it works perfectly ! I can use Lwjgl with Jogl ! But it’s useless ;D
Here is the piece of code to change in a Jogl application :
public final void display(GLDrawable gLDrawable)
{
final GL gl = gLDrawable.getGL();
GLContext.useContext(gl);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
// Drawing here...
}
Don’t forget to import lwjgl (on the code below I’ve used static imports)…
Note: you can also use :
GLContext.useContext(gLDrawable);
but it makes my code crash sometimes…
Hope it will help someone !
Chman