Debug Output on AMD GPUs

I’m trying to setup a synchronous debug output callback. This is working fine on Nvidia GPUs but on AMD GPUs this doesn’t log anything. Am I missing something or are the AMD drivers just not supporting this despite saying that they are supporting OpenGL 4.3 (and even newer versions).

Here is my code:

glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE);
[...]
glEnable(GL_DEBUG_OUTPUT);
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
glDebugMessageCallback(new GLDebugMessageCallback() {
	@Override
	public void invoke(int source, int type, int id, int severity, int length, long message, long userParam) {
		// log message
	}
}, 0);
glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, (IntBuffer) null, true);

Are you generating errors, and if so, where?

I’m calling glEnd() every 2 seconds in the main render loop:

long t = System.currentTimeMillis();
while (!GLFW.glfwWindowShouldClose(window)) {
	GLFW.glfwPollEvents();
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

	if (System.currentTimeMillis() - t > 2000) {
		GL11.glEnd();
		t = System.currentTimeMillis();
	}

	GLFW.glfwSwapBuffers(window);
}

Edit: I don’t know what I changed but now it does work. Will have to do more testing tomorrow.