[osg-users] Possible bug in dev version:no call to initializeExtensionProcs for embedded window

Sergey Kurdakov sergey.forum at gmail.com
Wed Apr 8 09:02:47 PDT 2015


Hi Robert,

 I tracked my error.

my osg is a port of osg to emscripten, so no switch of contexts happens,
for that matter to reduce workload I commented in

void ViewerBase::renderingTraversals()

line
makeCurrent(*itr);

in

for(itr = contexts.begin();
        itr != contexts.end() && !_done;
        ++itr)
    {
        if (!((*itr)->getGraphicsThread()) && (*itr)->valid())
        {
            doneMakeCurrentInThisThread = true;
            makeCurrent(*itr);
            (*itr)->runOperations();
        }
    }

that was fine for older version of osg, never version initializes
extensions in a first call to makeCurrent(*itr);

 now I uncommented this line in my code but keep porting other things in
new version of osg though.

so there is nothing wrong with osg at all - that was just an artifact of my
port and different behavior to init extensions, sorry for wrong call.

Regards
Sergey

On Tue, Apr 7, 2015 at 2:50 PM, Sergey Kurdakov <sergey.forum at gmail.com>
wrote:

> Hi Robert,
>
> with osg it works ok, but I try to find a source of the bug then will
> report ( or will write and example where it can be tracked in stock osg )
>
> Regards
> Sergey
>
> On Tue, Apr 7, 2015 at 12:37 PM, Robert Osfield <robert.osfield at gmail.com>
> wrote:
>
>> Hi Sergey,
>>
>> It sounds like a bug to me.  I haven't tried replicating it but will have
>> a bash this morning.  Can you recreate the problem with an OSG example?
>>
>> At a first guess I think the solution would be for the
>> GraphicsWindowEmbedded::relaizeImplemention() to do the
>> State::initializeExtensionProcs().
>>
>> Robert.
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150408/e7a5c11d/attachment-0002.htm>


More information about the osg-users mailing list