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

PIT: D3D: VolatileImage is distorted when lowering the color depth at runtime

XMLWordPrintable

    • 2d
    • 6
    • beta
    • x86
    • windows_xp
    • Verified

      I am rendering an opaque volatile image onto a JComponent and showing it on the screen. I am running this app on WinXP-sp2 with 'sun.java2d.d3d=true'. When the test is running, I am changing the color depth from 32 bit to 16 bit in the display panel. When applying the changes, the volatile image gets distorted completely and not getting restored thereafter. This is noticed on the following PIT build:

      java version "2d.pit-jcg-win-03-2005-04-09.mustang"
      Java(TM) 2 Runtime Environment, Standard Edition (build 2d.pit-jcg-win-03-2005-04-09.mustang)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b31, mixed mode)

      This is not seen with the default mode or with noddraw. With OpenGL, the frame turns black and a separate bug has been filed against it already.

      I have attached a test. Execute the test. You would see a frame with a duke image. Open display settings and change the color depth to 16 bit from 32 bit. Apply the changes. If the volatile duke image is distorted, the bug is reproduced.

      I reproduced it on Nvidia GeForce4 MX4000 with the driver - 6.14.10.7184. DirectX 9.0c.

      ###@###.### 2005-04-14 15:41:23 GMT

            tdv Dmitri Trembovetski (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: