FYI: 8242950: Files which can't be selected has different color with metal…

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Mon Jun 15 13:05:22 UTC 2020


… than opengl in JFileChooser

Opengl uses GL_INTENITY as internal format for texture creation in glTexImage2D
As per https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glTexImage2D.xml,
GL internally assembles it into an RGBA element by replicating the intensity value three times for red, green, blue,
and alpha. Same is done in Metal grayscale text rendering.

-------------

Commit messages:
 - 8242950: Files which can't be selected has different color with metal than opengl in JFileChooser

Changes: https://git.openjdk.java.net/lanai/pull/58/files
 Webrev: https://webrevs.openjdk.java.net/lanai/58/webrev.00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8242950
  Stats: 24 lines in 1 file changed: 20 ins; 1 del; 3 mod
  Patch: https://git.openjdk.java.net/lanai/pull/58.diff
  Fetch: git fetch https://git.openjdk.java.net/lanai pull/58/head:pull/58

PR: https://git.openjdk.java.net/lanai/pull/58


More information about the lanai-dev mailing list