← Back to team overview

kicad-developers team mailing list archive

Re: mode openGL issues after latest updates

 

Le 03/06/2016 à 16:04, Maciej Sumiński a écrit :
> Hi,
> 
> I have just pushed the mentioned changes.
> 
> @Jean-Pierre,
> If you experience crash on exit with OpenGL GAL again, then we can
> revert commit 6881, but I do not consider this a good solution, as it
> creates a memleak. We need to think about another way of handling OGL
> resources.

Unfortunately, yes, I still have the crash.
But why it creates a mem leak if the glContext is freed when exiting the application and if it is
created only once?

Thanks.

> 
> Regards,
> Orson
> 
> On 05/31/2016 05:53 PM, Maciej Sumiński wrote:
>> Jean-Pierre, Mario,
>>
>> I have just finished another approach to the OpenGL contexts problem
>> [1]. I will be grateful if you could test it. I have tried it out with 2
>> window managers on Linux/64, and now I am rebuilding it on W7/64.
>>
>> @Mario
>> I am wondering if there is still a problem of getting an assert when
>> OpenGL context is switched while the parent window is invisible. If so,
>> then we have to set the context when the parent window is still visible
>> before destruction (GL_CONTEXT_MANAGER::LockCtx() method) and then we
>> may use GL calls in the destructor, followed by
>> GL_CONTEXT_MANAGER::UnlockCtx().
>>
>> Regards,
>> Orson
>>
>> 1. https://github.com/orsonmmz/kicad-source-mirror/tree/opengl_ctx_fix
> 
> 


-- 
Jean-Pierre CHARRAS


Follow ups

References