mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8229810: [macos] NullPointerException getting bounds of GraphicsConfiguration
Reviewed-by: jdv
This commit is contained in:
parent
1d4f4016ee
commit
f3a9ad9290
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,10 @@ public final class CGraphicsDevice extends GraphicsDevice
|
|||
public CGraphicsDevice(final int displayID) {
|
||||
this.displayID = displayID;
|
||||
config = CGLGraphicsConfig.getConfig(this, displayID, 0);
|
||||
// initializes default device state, might be redundant step since we
|
||||
// call "displayChanged()" later anyway, but we do not want to leave the
|
||||
// device in an inconsistent state after construction
|
||||
displayChanged();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue