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

isNPOTSupported check is too strict

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx15
    • jfx11, 8, 9
    • javafx
    • arm
    • other

      In case a Node has a scaleZ set non-equal to 1, the transform to that node (including scaleX and scaleY) will only be applied if ES2Pipeline.is3DSupported is true, which will be true in case GLFactory.isNPOTSupported returns true.

      The check for isNPOTSupported does this:
      return (isGLExtensionSupported("GL_ARB_texture_non_power_of_two")
                          || isGLExtensionSupported("GL_OES_texture_npot"))

      On iOS devices, non of these extensions exist as it seems NPOT support is part of OpenGL ES 2 (at least partially).
      Maybe the check has to be altered to also check the version of GL?

            jpereda Jose Pereda
            jvos Johan Vos
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: