Comment 16 for bug 1817284

Revision history for this message
jean-pierre charras (jp-charras) wrote :

Hi @Tomasz,

printf does not show bad parameters.

After more tests, I am now pretty sure the root issue is some interaction between 2 instances of OPENGL_GAL, and happens just after the second instance is created.

It happens of course when opening the pad editor or the footprint editor, but also when switching the GAL canvas to OpenGL, if an other OPENGL_GAL is running.
For instance if both the board editor and the fp editor are open, if I switch the fp editor from Cairo to Opengl, I also see the incorrect display.
(The opposite is true: if I switch the board editor from Cairo to Opengl, I also see the incorrect display)
I tested there is no issue in pad editor if the board editor uses Cairo, and the pad editor uses OpenGL (need a code change).

No problem if only one OPENGL_GAL is running.

I am thinking any object using something else than Shader( SHADER_NONE ) is not shown when the view is built just after the new OPENGL_GAL instance is created, and could be due to some strange caching issue.
The first change (grid or zoom change) displays the right view.

If built more than 200 ms after the opengl canvas is shown on screen (just a refresh is not always enough) the display is OK.