Don't set create before the window is really created in case an exception is thrown

This commit is contained in:
Elias Naur 2004-02-05 16:27:22 +00:00
parent 9adc719a08
commit 2124b34f59
1 changed files with 1 additions and 1 deletions

View File

@ -320,8 +320,8 @@ public final class Window {
HashSet extensions = new HashSet();
nCreate(title, x, y, width, height, fullscreen, color, alpha, depth, stencil, extensions);
GLCaps.determineAvailableExtensions(extensions);
created = true;
context = new Window();
created = true;
}
/**