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

DepthTest flag on Graphics is set by Node but never cleared, misbehaving with multiple dirty regions

    XMLWordPrintable

Details

    Description

      NGNode's render method calls g.setDepthTest(isDepthTest()). Because every node does it, one might be forgiven for never restoring the state. However, this *same* graphics object instance is reused from the rendering of one dirty region to the rendering of the next. If our policy is to manually restore graphics state after rendering, then we need to be sure to restore the depth test state as well, otherwise we will misbehave. If instead we don't guarantee that, then we need to use different graphics objects between dirty regions.

      Attachments

        Activity

          People

            ckyang Chien Yang (Inactive)
            rbair Richard Bair (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: