Skip to content


8283401: ArrayIndexOutOfBoundsException when disconnecting screen(s)
Browse files Browse the repository at this point in the history
Reviewed-by: kcr, mstrauss
  • Loading branch information
Marius Hanl committed Aug 11, 2023
1 parent bedb964 commit a5183e5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ void reinitialize() {

d3dInitialized = true;
factories = new D3DResourceFactory[nGetAdapterCount()];

// Reassign the adapter ordinal of all the screens because the configuration has been changed
// and the old adapter ordinal may be outdated.
for (Screen screen : Screen.getScreens()) {

Expand Down

1 comment on commit a5183e5

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.