[osg-users] Custom Graphics Context not applied?

Philipp Meyer philipp.meyer at fh-bielefeld.de
Tue Aug 30 03:21:09 PDT 2016


Hi,

I'm trying to create a custom graphics context to replace the default X11 Graphics context (I need to add some additional code).

To do this, I created a new "CustomGraphicsContextX11" class, deriving from "PixelBufferX11". I reimplemented the virtual methods that I need to adjust.

Then, I apply the custom graphics context to my master camera and start up the viewer.

However, to my own surprise the swapBuffersImplementation() method of my custom context is never executed. Same goes for "realizeImplementation()".

Is OSG still using another graphics context behind the scenes for some reason? The method described above worked fine for me on another system without the X11 windowing system.

Thank you!

Cheers,
Philipp

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68483#68483








More information about the osg-users mailing list