Open jzy3d opened 2 years ago
Fix proposed by a VTK developer
We confirm the Java wrapping of VTK is also impacted by this behavior. We reproduce the problem described in this post with all the Windows+Nvidia configurations we tried. Here is our findings in case it helps:
The best workaround we have so far is to turn on the nopixfmt option: sun.awt.nopixfmt=true. This way we always get a single configuration returned and the expected OpenGL version is used.
Looking at the Win32GraphicsDevice source code, the number of configurations returned as well as the value of the default configuration depends on the default pixel format id.
Maybe using nopixfmt has influence on the default pixel format ID and results in the expected configuration being picked? Or maybe it has influence on the isDefaultDevice check at the start of getConfigurations()?
https://forum.jogamp.org/Incorrect-context-on-GLCanvas-drawable-td4041391.html
Windows 10
From JOGL forum
Answer
Answer