This is line 40 in GraphicsFactory:
fbo = GLContext.getCapabilities().GL_EXT_framebuffer_object;
I have no idea how a NullPointer can be thrown there, unless this is an LWJGL bug where GLContext.getCapabilities() returns null.
This is line 40 in GraphicsFactory:
fbo = GLContext.getCapabilities().GL_EXT_framebuffer_object;
I have no idea how a NullPointer can be thrown there, unless this is an LWJGL bug where GLContext.getCapabilities() returns null.
Exactly what I mean, the error is totally confusing and shouldn’t happen its a pretty simple procedure I’m trying and I have tried several ways around which have also failed.
I can’t paste anymore code neither cause I ain’t at home.
Would really appreciate it if somebody could figure this out.
Peacee
GLContext.getCapabilities() return null when the current thread has no GL context active.
FACEPALM Of course!
@OP
You’re loading that image from another thread! You should do everything on the same thread as the rendering thread and after the GL Context has been initialized
Surprisingly I already thought of it but never did try it, I’ll just make a trigger or something that I can set in that thread then activate in the other thread.
Nice one mate (:
EDIT:
Wait don’t know if that’ll work because I tried getting graphics of a Image in render() and it makes the game freeze.
So strange…
Stilll not fixed!
Peace…
Any more info you can give us about this?
Not really sure what else there is to say everything else works and this would be simple in java2d.
There is a converter but then I would have to convert back lol
Peace