LWJGL Forum

Programming => OpenGL => Topic started by: carolus09 on July 06, 2007, 14:08:03

Title: GL11.glRenderMode problem
Post by: carolus09 on July 06, 2007, 14:08:03
I have several lists of objects, which are rendered and which can be selected by the mouse. When there are two points in a list with exactly the same coordinates they are - of course - rendered at the same position in the scene, but when I select the point the function  call  "hits = GL11.glRenderMode(GL11.GL_RENDER);" returns -1, although it should return 2.
Is it an OpenGL problem or ist it in the implementation of the function in LWJGL?
Is there any way to select the point in this situtaion?
Title: Re: GL11.glRenderMode problem
Post by: carolus09 on July 07, 2007, 11:11:27
I found the solution:
OpenGL returns a negative value, if there is a buffer overflow. Increasing the buffer size is the solution.