> >If i remember well, there is a maximum limit to the number of vertices you
> >can pass in an array. 39000 may be over ?
> >OpenGL has some function (glGet...) to get the limit, you should check it.
> >
> perhaps you're right, but I can't find any glGet.. Method to get the
> limit, and I wonder why milksahpe can display it without problems,
> because it uses OpenGL to render the objects..
>
> so I would be very lucky if you or s.o. else could tell me the complete
> method name.
It looks like glGet(GL_MAX_ELEMENTS_VERTICES) is what you
need. However, this glGet seems to only be associated with
glDrawRangeElements, not glDrawArrays.
OpenGL for Java does almost no additional work beyond calling
down to OpenGL; however, it is definitely possible to crash the
JVM in the same way it is possible to crash a C program using
OpenGL.
|