JDK-5044346 : OGL: Image returned by comp.createImage() could not be drawn to graphics context
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-05-09
  • Updated: 2004-05-10
  • Resolved: 2004-05-10
Related Reports
Duplicate :  
Description
I am loading a jpeg image through Toolkit.getImage(). I am creating another image through component.createImage(w,h) and drawing the jpeg image onto the graphics context of this created image. In the paint method of the canvas, I am rendering this buffered image onto the graphics context. When running in default mode on WinXP, this works fine. But when running it through OpenGL, nothing is drawn and the canvas is blank. This is noticed right from Tiger-beta2-b46 on WinXP with NVIDIA GEFORECE4 MX440. 

Component.createImage() is a basic feature for creating an image that is compatible with the component and this is commonly used in double buffering cases.

I have attached a sample test. Execute the sample test with OpenGL flag. If you don't see a java logo on the frame, the bug is reproduced.

Here is the platform info:
CPU:
Intel 32bit
Single Processor
Processor Speed: 2394 MHz

Operating System:
Windows XP (version 5.1 Service Pack 1 (Build 2600))

DirectX version: DirectX 8.1 or greater

DirectX display devices:
Device 0:
  Resolution (width x height x depth): 1024 x 768 x 32
  Video memory (Total, Free): 130875 KB, 130792 KB
  Device driver nv4_disp.dll version 6.14.10.5672

GDI display devices:
Primary: Name = \\.\DISPLAY1, Description = NVIDIA GeForce4 MX 440

Comments
EVALUATION If you modify the testcase to clear the background with a color, say red, it makes it easier to see that the image is being rendered as white. This is the same issue that was already reported under 5026270 (i.e. images returned by createImage() are sometimes rendered completely white). Closing as a duplicate of that earlier bug. ###@###.### 2004-05-10
10-05-2004