Login  Register

Re: Incorrect context on GLCanvas drawable

Posted by MarcoNL on Sep 13, 2022; 11:24am
URL: https://forum.jogamp.org/Incorrect-context-on-GLCanvas-drawable-tp4041391p4041868.html

Hi Martin,

thanks for the suggestion.

Originally, I selected vtkJoglCanvasComponent for use in my application because, according to my tests, it was the one granting the best rendering performance as well as the best cross-platform compatibility (I managed to make it work fine on macOS as well).

However, I just modified my context test case in order to use the GLJPanel instead of GLCanvas:

JoglJPanelContextTestCase.java

In this case, without specifying any "-Dsun.awt.nopixfmt=true" system property, my "JoglJPanelContextTestCase" seems to pick up the correct OpenGL 4.6 context!

Do you have an explanation of the reason why JoglContextTestCase (using GLCanvas) is picking up an erroneous Open GL 1.1 context, while JoglJPanelContextTestCase (using GLJPanel) is picking up the correct Open GL 4.6 context on my NVIDIA-powered development PC?

I would be really nice to understand (and eventually, correct) this behavior.

Thanks and best regards,

Marco Sambin