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

ES2 texture creation, GLES2 and PaintHelper

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 9
    • 7u6
    • javafx

      In ES2Texture.create()

      allowPad is passed in, and by default from PaintHelper is true.

      Then pad is computed as:
              boolean pad =
                  allowPad &&
                  gl.isGLES2() &&
                  context.isEdgeSmoothingSupported(format);

      The isEdgeSmoothingSupported is only used here, returning true for desktop, and does an alpha check when isDevice. suggesting we kill isEdgeSmoothingSupported, and bring all the check back in here.

      Looks like for both iOS and the Beagle (which are isGLES2()), gradients only work when the pad calculation is false. ios is currently modifying PaintHelper to pass allowPad==false, and I hacked the code to test my theory for the beagle.

      There is a big comment section that goes with the pad, that seems to indicate that it should work.

      context.canCreateNonPowTwoTextures()=false for beagle.

      It could be that the real fix lies in upLoadPixels(), but I am still learning about what that does.

            ckyang Chien Yang (Inactive)
            ddhill David Hill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: