mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8252133: The java/awt/GraphicsDevice/DisplayModes/CycleDMImage.java fails if metal pipeline is active
Reviewed-by: prr
This commit is contained in:
parent
afc967fcd0
commit
e5870cf002
3 changed files with 84 additions and 56 deletions
|
@ -131,9 +131,14 @@ public final class CGraphicsDevice extends GraphicsDevice
|
|||
return scale;
|
||||
}
|
||||
|
||||
public void invalidate(final int defaultDisplayID) {
|
||||
/**
|
||||
* Invalidates this device so it will point to some other "new" device.
|
||||
*
|
||||
* @param device the new device, usually the main screen
|
||||
*/
|
||||
public void invalidate(CGraphicsDevice device) {
|
||||
//TODO do we need to restore the full-screen window/modes on old device?
|
||||
displayID = defaultDisplayID;
|
||||
displayID = device.displayID;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue