JDK-6256584 : PIT: OGL: Red, Blue, Yellow colors are swapped when drawing to offscreen, linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_sun
  • CPU: x86
  • Submitted: 2005-04-18
  • Updated: 2010-04-02
  • Resolved: 2005-05-02
Related Reports
Duplicate :  
Description
I am drawing 3 filled rectangles to an offscreen image and the rectangles are filled with solid red, blue and yellow colors respectively. When I run this on Linux with opengl flag, red and blue colors are swapped and yellow color appears as light blue. This is noticed only on the following PIT build:
java version "1.6.0-2d.pit-jcg-win-03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-2d.pit-jcg-win-03-java2d_15_apr_2005_02_14)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b32, mixed mode)

Not reproducible with default mode. Not reproducible with Mustang-b31 on OpenGL. I have attached a screenshot of the same. I reproduced it on Cinnabar with ATI Radeon 9600XT. This is not reproducible when drawing directly to the screen.

I have attached a sample test. Execute the sample test on linux with OpenGL flag. If you see the colors appearing incorrectly, the bug is reproduced.

###@###.### 2005-04-18 14:52:01 GMT

Comments
EVALUATION This issue is due to the fix for 6240664, which makes createImage() return a regular managed image (similar to what GraphicsConfig.createCompatibleImage() would return). This problem is specific to ATI's drivers on some boards: when rendering an texture to the screen, the red/blue channels are sometimes swapped. This issue was filed with ATI but there has been no resolution yet. It is already tracked under 5033205 (which covers a few different ATI driver problems), so I'm closing as a duplicate of that one. ###@###.### 2005-05-02 15:12:33 GMT
02-05-2005