Skip to content

Instantly share code, notes, and snippets.

@Pwootage
Created January 13, 2013 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pwootage/4525785 to your computer and use it in GitHub Desktop.
Save Pwootage/4525785 to your computer and use it in GitHub Desktop.
Caused by: org.lwjgl.LWJGLException: Could not create context (WGL_ARB_create_context)
21at org.lwjgl.opengl.WindowsContextImplementation.nCreate(Native Method)
at org.lwjgl.opengl.WindowsContextImplementation.create(WindowsContextImplementation.java:50)
at org.lwjgl.opengl.ContextGL.<init>(ContextGL.java:132)
at org.lwjgl.opengl.DrawableGL.createSharedContext(DrawableGL.java:77)
at org.lwjgl.opengl.DrawableGL.createSharedContext(DrawableGL.java:41)
at org.lwjgl.opengl.SharedDrawable.<init>(SharedDrawable.java:50)
at me.adanac.latura.render.world.impl.RenderUpdateThreadPool.<init>(RenderUpdateThreadPool.java:29)
... 5 more
public RenderUpdateThreadPool(Game game) {
threads = new ArrayList<RenderUpdateThread>();
for (int i = 0; i < Settings.getRenderThreadCount(); i++) {
SharedDrawable sd;
try {
sd = new SharedDrawable(Display.getDrawable());
} catch (LWJGLException e) {
throw new Error(e);
}
RenderUpdateThread rut = new RenderUpdateThread(this, this, threadNum++, sd);
threads.add(rut);
}
requests = new ArrayDeque<>();
running = true;
this.game = game;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment