LWJGL/lwjgl — pull request #4 by HaggisChan (2012-11-20 22:19:21+00:00)
Title: Make ContextAttribs and PixelFormat mutable

withXXXX() methods no longer create a new instance. They instead modify the instance, and return this. This removes any possible misunderstanding is using the withXXXX() calls individually (without
chaining them).

This change also ensures all the 'OpenGL 3.2 and newer' examples on the wiki set up the display correctly (the examples assume mutability and don't work as intended).

Also see http://lwjgl.org/forum/index.php/topic,4708.0.html