Hi,I am working with some code that was written about year or two ago just before or about the same time last major changes to JOGL took place, and I am getting some errors that appear to be the result of that. Could someone type me what would be the "smartest" way to fix this without having to go through the code line by line and make changes. I have included this one error as an example of the kinds of things I am seeing. For example, in one class, everywhere there is a line such as:

gl.glBegin(GL.GL_TRIANGLES);

i get the error message:

The method glBegin(int) is undefined for the type GL

I tried switching to using GL3 in the hopes that might help but error remained same.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org