LWJGL problem with shared contexts

Due to some reasons we recently put our asset loading code in their own threads. These threads have their own shared OpenGL contexts, but it seems like we don’t need it, so we’ll probably make them normal threads. Anyway, the point is that sometimes when a shared context is made current on the new thread, it crashes due to some kind of concurrency issue sometimes. This is with the latest stable version of LWJGL 2. The problem seems related to capabilities checking that the context switch triggers.

Creating a simple test program to reproduce the problem failed as usual…