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

[OGL] Incorrect alpha used, during blit from SW to the texture.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 8
    • 7u6
    • client-libs
    • None
    • 2d
    • b11
    • 7u4
    • b49
    • x86
    • os_x
    • Verified

        I found this bug when I implemented the shaped windows on macosx(7124244).
        Before 7124244 we always draw our transparent window to the BufferedImage and then blit it to the window surface(and this bug was invisible). But now we draw it directly to the window surface. So when we try to draw the BufferedImage to the surface 2 times, we see incorrect result. This happen because for the first drawImage we use SWtoSurfaceBlit and for the second we use SWtoTextureBlit(when "managed buffered image" enabled).

        I assume that code for alpha verification should be the same for both blits(see suggested fix).

        Small testcase attached. It is passed on jdk6 on macosx and on non opengl pipelines in jdk 7, tested on ubuntu and windows 7.

              serb Sergey Bylokhov
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: