really confused with an error

GL15.glDeleteBuffers(vertid);
		GL15.glDeleteBuffers(texid);
		shader.dispose();

is causing the error. is there anyway to check if there is opengl data in the thread?

[quote] is there anyway to check if there is opengl data in the thread?
[/quote]
Yeah, by looking at the source. :emo:

Well the issue is , the object is created , it has a buffer with the vertid and texid so there should be no error.

Yes but that’s not the error. The error is, you’ve got no OpenGL context current in the main thread. Which means either:
a) You created the Display in a different thread to the main thread
or b) You have actually closed the Display
or c) You are actually taking the context away from the current thread in a different thread eg. by creating some other OpenGL drawable.

It’s one of those things; which one? Stick a breakpoint on Display. Just before the exception assert that Display.isCurrent().

Cas :slight_smile: