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

OGL: Image returned by comp.createImage() could not be drawn to graphics context

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      windows_xp

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              campbell Christopher Campbell (Inactive)
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: