JDK-8112222 : FloodGame appears (rendering) broken on Mac using the default Prism pipe
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2011-04-27
  • Updated: 2015-06-16
  • Resolved: 2011-11-30
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
fx2.1Fixed
Related Reports
Duplicate :  
Relates :  
Description
There is very noticeable rendering issue on FloodGame, in toys/HelloWorld, when using the default Prism pipe. Looks like there a blending issue on the overlaying panel. This result can be compared with j2d pipe  (-Dprism.order=j2d) or swing pipe (-Djavafx.toolkit=swing).
Comments
Verified that this is fixed.
27-03-2012

Fixed as indicated in changeset: changeset: 15003:db0f34535bba date: Tue Nov 29 16:21:50 2011 -0800 summary: Fix RT-12852: gradient background on window breaks effects
30-11-2011

It looks like there is code in the MacOS version of Glass that sets the glClearColor to the window's background color, but the Prism code assumes that the default color in the GL context will be transparent. Thus, when Prism goes to clear the textures for Decora it requests an update of the clear color to transparent, but the state code believes that the GL context already has that value and simply avoids updating it - leaving the Decora images all filled with the (usually opaque) Mac Window color. The fix is to make no assumptions about the default clear color in the Prism state code.
29-11-2011

Actual appearance (using ES2 renderer)
29-07-2011

How it's supposed to look (using J2D renderer)
29-07-2011

(note for future reference) Reflection effect is causing the background to turn black. See attached screen shots. This does not happen on ES2 in Windows, so it's Mac specific.
29-07-2011

Moving out of Presidio as this is not critical for Mac Beta.
06-07-2011