JDK-8304830 : Reset clip rect when changing RTT
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2023-03-23
  • Updated: 2024-07-06
  • Resolved: 2023-03-23
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
internalFixed
Description
JDK-8304324 adds basic functionality to set Scissor Rect on MTLRenderEncoder. But does not completely solve clip rects state management.
The Scissor rect behavior is different in Metal compared to OpenGL and ES2.
For Metal we need to reset the scissorRect once the RTT changes.
This solves issues like:
- Crash on showing new Stage
- Crash on Showing Some popups like, ComboBox popup
- Visual artifacts in animations
Comments
Changeset: ecfc8826 Author: Ambarish Rapte <arapte@openjdk.org> Date: 2023-03-23 23:11:11 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/ecfc8826bebbe317ce59127f16645a159c841ec5
23-03-2023