So, while programming in Java and LWJGL I was working on a simple game for fun.
And everything worked, I could run the game, and play. But then I leave my computer alone for about 30 minutes and come back to run the game again, and I get the Pixel format not accelerated
error. I don't know where it came from, but I assure you it worked earlier. I thought maybe restarting the engine and game to see if I could fix it again.
Here is my code after restarting:
`
package engine.dungeon.core;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
public class Window {
public static final int WIDTH = 640, HEIGHT = 480;
public Window() {
try {
Display.setDisplayMode(new DisplayMode(640, 480));
Display.create();
} catch (LWJGLException e) {
e.printStackTrace();
}
}
}
`
I figured it out! There was an update for my graphics card that I got after restarting my computer for a second time.