JDK-6660881 : PIT:D3D: Background appears white when using a BufferStrategy with FlipContents.BACKGROUND
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-02-08
  • Updated: 2008-02-11
  • Resolved: 2008-02-11
Related Reports
Duplicate :  
Relates :  
Description
I am rotating an Image through a BufferStrategy created out of a Canvas. The front and back buffers are accelerated and FlipContents is set to BACKGROUND. Till jdk6u10-b11, the background of the application was appearing black but on 6u10-b12 PIT build, the background appears in white color. Other FlipContents types seem to work fine. 

I reproduced it on WinXP with Nvidia GeForce 7600 GS, installed with the latest driver using jdk6u10-b12 PIT build. The background becomes black when I turn off the D3D on 6u10-b12. 

I have attached a sample test herewith. Just compile and run the test. If you see a white background, the bug is reproduced.

Comments
EVALUATION This is a duplicate of 6661319: PIT: Setting background color on top levels do not work I have verified that we get Black as the background color in D3DGraphicsConfig.flip() when we call target.getBackground().
11-02-2008