No OpenGL context has been made current ... API methods (glfwMakeContextCurrent)

Started by starfyre, November 15, 2024, 22:14:05

Previous topic - Next topic

starfyre

Hey All...

I'm getting the error "No OpenGL context has been made current through recognized API methods (glfwMakeContextCurrent)" when I try and run LWJGL 3.3.4+7! on Java 21 in Elclipse 20204-09.
Windows 11 version 10.022631 build 22631 :: NVIDIA GeForce RTX 4090 :: Intel Core i9-14900KS

I am calling glfwMakeContextCurrent(mWindowID); The windowID is that same throughout the program and the thread ID is the same throughout the program.

System.out.println(Thread.currentThread().threadId() + " " + mWindowID);
		glfwMakeContextCurrent(mWindowID);

		GL.createCapabilities();

		Callback debugProc = GLUtil.setupDebugMessageCallback();
		glfwSwapInterval(1);

		if (isVSync()) {
			glfwSwapInterval(1);
		}

		glfwShowWindow(mWindowID);

The failing code is GL30.glGenVertexArrays()...

private int createVAO() {
		System.out.println(Thread.currentThread().threadId() + " " + windowManager.getWindow());
		int id = GL30.glGenVertexArrays();
		mVAOS.add(Integer.valueOf(id));
		GL30.glBindVertexArray(id);
		return id;
	}

any help will be greatly appreciated!