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

XRender : AlphaComposite test results are incorrect.

    XMLWordPrintable

Details

    • 2d
    • b115
    • linux
    • Verified

    Description

      On Linux with JDK 8 the attached program performs OpenGL drawings correctly if run with -Dsun.java2d.opengl=True option.

      However, if run with -Dsun.java2d.opengl=False or if sun.java2d.opengl option is not specified at all, then the same program produces different OpenGL drawings and they are not correct.

      If run on JDK 7, then in all cases the program draws the same correct drawing.

      To reproduce using JDK8:

      javac AlphaCompositeTest.java
      java -Dsun.java2d.opengl=False AlphaCompositeTest.
      Then see the graphics output on screen.
      java -Dsun.java2d.opengl=True AlphaCompositeTest
      Then see the graphics output on screen.

       The output differs and with -Dsun.java2d.opengl=False looks incorrect.

      The output does not differ and looks correct when run with JDK 7.


      We have a set of functional tests falling because of that issue.


      Attachments

        1. AlphaCompositeTest.java
          4 kB
          Alexander Kulyakhtin
        2. jdk8_by_default.png
          6 kB
          Alexander Kulyakhtin
        3. jdk8_ogl_disabled.png
          6 kB
          Alexander Kulyakhtin
        4. jdk8_ogl_enabled.png
          8 kB
          Alexander Kulyakhtin

        Issue Links

          Activity

            People

              bae Andrew Brygin
              akulyakh Alexander Kulyakhtin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: