LWJGL Function is not supported? Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of LWJGL Function is not supported? without wasting too much if your time.

The question is published on by Tutorial Guruji team.

EDIT: Since people still land here from google, you MUST call every OpenGL methods in a OpenGL context. So be sure you are in a context before doing anything with GL.

I am trying to render a simple text on my screen using lwjgl but everytime, it failed! When i launch the game, it crash and throw me that error:

Exception in thread "main" java.lang.IllegalStateException: Function is not supported
at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:58)
at org.lwjgl.opengl.GL11.glBegin(GL11.java:682)
at com.zarax.gui.GuiRenderer.renderString(GuiRenderer.java:63)
at com.zarax.main.Main.main(Main.java:106)

Did i need to use modern openGL things or what? I really need help here


You need to call Display.create():

Display.setDisplayMode(new DisplayMode(1080, 720));
We are here to answer your question about LWJGL Function is not supported? - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji