My “Jack Flowers” game (http://www.javapause.com/games/jack) is based on Xith and jogl - jsr231
Some users with intel gfx boards have problems with VBO :
- OpenGLExtensions.GL_ARB_vertex_buffer_object is true
- the API is OpenGL 1.4??? and so glGetBufferParameteriv is not defined for that chip and the game crashes in ShapeAtomPeer.bindGeometryComponent
As a workaround I’ve disabled the render Option.USE_VERTEX_BUFFER_CACHING for OpenGL 1.4 … but shouldn’t it be made as default ?
As the opengl version is hidden inside the CanvasPeerImpl, I’ve added the following code into it (in the init(GLAutoDrawable) method, before displaying the extensions) :
if (openGlVersion.startsWith("1.4")){
if (showInfos){
System.out.println("OpenGL 1.4 detected : disabling Vertex Buffer Caching");
}
getRenderOptions().setOption(Option.USE_VERTEX_BUFFER_CACHING, false);
}
Does it seems good to you ? or do I miss something ?
Lilian