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

getAvailableAcceleratedMemory returns an incorrect value when opengl=true

XMLWordPrintable

    • 2d
    • beta
    • 5.0
    • beta
    • x86
    • windows_xp
    • Verified

      Graphicsdevice.getAvailableAcceleratedMemory() is expected to return the no. of bytes available in the accelerated memory or it may choose to return a negative value if that memory is infinite. But when opengl is turned on, this method always returns 0 on WinXP with NVIDIA GEFORCE4 MX440 video card. '0' is not documented as an expected value in the API specification.

      This is seen right from Tiger-beta2-b46 where OGL feature was introduced for win32. I tested this with 'sun.java2d.noddraw=true' flag and I am able to reproduce this bug.

      I have attached a sample test. Execute it. If you see the available accelerated memory as '0', the bug is reproduced.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: