Don't set create before the window is really created in case an exception is thrown
This commit is contained in:
parent
9adc719a08
commit
2124b34f59
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue