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

Add GL_FRAGMENT_PRECISION_HIGH check to existing 2D shaders before setting precision to highp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u60
    • 8u40
    • javafx
    • None

      The 2D fragment shaders require explicit precision for floats. The highp precision might not be available on some embedded devices. It is a good practice to use the GL_FRAGMENT_PRECISION_HIGH macro to check for its availability before setting to it.

      https://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf

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

              Created:
              Updated:
              Resolved:
              Imported: