[osg-users] Custom Graphics Context not applied?

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


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!


Read this topic online here:

More information about the osg-users mailing list