Rendering not working with GL3 or 4
Posted by
The Typhothanian on
Sep 27, 2024; 6:14pm
URL: https://forum.jogamp.org/Rendering-not-working-with-GL3-or-4-tp4043534.html
I have a weird issue. I've used JOGL before for a game, but it isn't working this time. I have a GLJPanel as the content pane of my JFrame, and am trying to render with vertex objects. With a GL2 it works fine. However, I need GL4 for bindless textures, and upgrading to version 3 or 4 causes errors.
The clear color is working, but whatever I'm trying to draw works fine for one frame then disappears. I think this is because I'm not unbinding the vao at the end of the frame, but when I unbind it, I get GL_INVALID_OPERATION on all following frames. Has this sort of thing ever happened before? Here's a
reddit post with my code (explanation is a bit outdated)