JDK-8264741 : D3DPipeline should handle S_PRESENT_MODE_CHANGED
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8,openjfx11,openjfx16
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows
  • Submitted: 2021-04-05
  • Updated: 2021-04-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
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).