Comment 4 for bug 1670849

Revision history for this message
Mario Luzeiro (mrluzeiro) wrote : Re: 3D viewer render circular pads as square in opengl mode

I experience this bug since the beginning I start developing the 3DViewer.

3D-Viewer uses textures to draw the round/circle segments and holes.
The OpenGL is initialized and the textures are loaded in the GPU.

For some reason, while you switching between windows and make some kind of movements, for some reason the textures are corrupted. (almost randomly.. or you can reproduce it at some few random playing with the windows)

I don't know and didn't find any suggestion how should I do something differently. I learned that I only need to create an OpenGL context and use it to load once the textures.
I never saw anything that I need to detect any special event and I need to create a new context or load again the textures?..

So this are the lines of investigation ;)

I remember on Pcbnew with Opengl mode to saw something similar before, but it does not use textures as everything is computed on the fly by the shaders.

Orson did some work on managing the OpenGL contexts maybe we knows more something about this?