Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8264741

D3DPipeline should handle S_PRESENT_MODE_CHANGED

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx11, 8, jfx16
    • javafx
    • None

      While debugging JDK-8239589, I noticed that in some cases we can get a return status of S_PRESENT_MODE_CHANGED from TestCooperativeLevel.

      This can happen upon a remote desktop reconnect, or when plugging / unplugging an external display, moving a window between displays, or changing the resolution of a display.

      It continues to run normally, since S_PRESENT_MODE_CHANGED is not an error, but we should consider handling it by resetting the device in a similar manner to what we do in the case of a lost surface (maybe handle it like D3DERR_DEVICENOTRESET).

            kcr Kevin Rushforth
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: