Hello,
The attached patch fixes a possible segmentation fault in OSG 3.5.1 in
osg::LightModel that is triggered by glGetString() returning NULL. It's
still not really thread safe, as before, but safe enough.
--
Mit freundlichen Grüßen,
Christoph Weiß
WSoptics GmbH
we...@wsoptics.de
+49 886
Hi Christoph,
I reviewed your changes but fee there is a safe way to do this. The
use of local static variable isn't safe so I've replaced the static
code with state.get usage that is thread-safe and
multi-context friendly. Changes are outlined below. These are now
checked into the git master a
Hi Robert,
Thank you for the quick reply and fix!
As for the reasons, I'm uncertain. Our application only works in
SingleThreaded mode, otherwise it produces "Error: OpenGL version test
failed, requires valid graphics context."
I'll let you know when I find what causes this.
Christoph
Mit
On 22 September 2016 at 14:59, Christoph Weiss wrote:
> As for the reasons, I'm uncertain. Our application only works in
> SingleThreaded mode, otherwise it produces "Error: OpenGL version test
> failed, requires valid graphics context."
>
> I'll let you know when I find what causes this.
Sounds