Hi Orson,

I tested your new change, still working but I was wondering:

void OPENGL_GAL::BeginUpdate()
{
    if( IsShownOnScreen() )
        SetCurrent( *OPENGL_GAL::glContext );

On this case shouldn't you not allow the begin of the update at all? (As you 
will not be able to render it)... but I dont know exactly how it is supposed to 
work.

Regards,
Mario

________________________________________
From: Kicad-developers 
[[email protected]] on behalf of 
Mário Luzeiro [[email protected]]
Sent: 03 May 2016 15:27
To: Maciej Sumiński; [email protected]
Subject: Re: [Kicad-developers] mode openGL issues after latest updates

I tested (on Windows) and it works!
I didn't feel any issues.
Thanks,
Mario
________________________________________
From: Maciej Sumiński [[email protected]]
Sent: 03 May 2016 15:20
To: Mário Luzeiro; [email protected]
Subject: Re: mode openGL issues after latest updates

On 05/03/2016 12:06 PM, Mário Luzeiro wrote:
> Hi Orson,
> I tested the new updates on my branch code, and now on Windows I got this 
> issues after I close the 3d-viewer windows:
>
> Error: mapping vertices buffer: invalid operation
> Error: unmapping vertices buffer: invalid operation
> Error: unbinding vertices buffer:  invalid operation
>
> My guess is that it may be related with oGL context? :S
>
> https://code.launchpad.net/~mrluzeiro/kicad/kicad_new3d-viewer
>
> On Linux it works fine.
>
> Any ideas?
> Regards,
> Mario Luzeiro

Hi Mario,

Thank you for the report. You are right, it was due to invalid OpenGL
context. I was able to recreate the problem on Linux and it should be
fixed now (revision 6769).

Regards,
Orson

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to