I am currently having an issue trying to initialize a frame buffer using LWJGL. When I try to call GL32.glFramebufferTexture(int, int, int, int) it throws a "Function is not supported" error. I have checked to make sure that the function is supported on my system using an OpenGL Extensions Viewer.
Here is the exact error:
Exception in thread "main" java.lang.IllegalStateException: Function is not supported at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:58) at org.lwjgl.opengl.GL32.glFramebufferTexture(GL32.java:389) at com.domain.name.graphics.GameWindow.startRendering(GameWindow.java:145)
Line 145 in GameWindow looks like:
GL32.glFramebufferTexture(GL30.GL_FRAMEBUFFER, GL30.GL_COLOR_ATTACHMENT0, colID, 0);
colID is set as such:
colID = GL11.glGenTextures();
Any help would be very welcome.
System info & proof of function support: