OGL: scaled blits incorrect when source parameters out of bounds

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 6
    • Affects Version/s: 5.0, 6
    • Component/s: client-libs
    • None
    • 2d
    • beta
    • 5.0
    • b33
    • generic, x86
    • generic, windows_xp

      When the OpenGL-based pipeline is enabled, scaled image copies produce
      incorrect results when any of the source parameters fall outside the bounds
      of the source image. For instance, suppose you have a 100x100 image, and you
      call:
          g.drawImage(img, 0, 0, 100, 100, 0, 0, 200, 200);
      The last two source parameters in this case (200,200) are obviously outside
      the bounds of the source image. The OGL-based pipeline does not deal with
      this case properly.

      You can see this problem clearly by compiling and running the attached testcase
      while specifying the -Dsun.java2d.opengl=True flag. Note that the first
      testcase (first row, second column) behaves differently than when the OGL flag
      is not specified (the correct behavior).

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: