No OpenGL context found in the current thread, how do I fix this error?

后端 未结 5 664
不思量自难忘°
不思量自难忘° 2020-12-02 01:49

I\'m working on a card game, and currently have a good foundation but I\'m running into an error when I run it in eclipse. I\'m also using slick 2d.

Here is the erro

5条回答
  •  时光说笑
    2020-12-02 02:17

    In lwjgl 3.x and higher, you can try: GLContext.createFromCurrent();

    If you're using libgdx, there is also Gdx.app.postRunnable(...) to post a Runnable on the render thread.

提交回复
热议问题