No OpenGL context found in the current thread
问题 I am using LibGDX to make a game. I want to simultaneously load/unload assets on the fly as needed. However, waiting for assets to load in the main thread causes lag. In order to remedy this, I've created a background thread that monitors which assets need to be loaded (textures, sounds, etc.) and loads/unloads them appropriately. Unfortunately, I get the following error when calling AssetManager.update() from that thread. com.badlogic.gdx.utils.GdxRuntimeException: java.lang.RuntimeException