Fixed create of graphics context by explicting adding USE_GRAPHICSWINDOW to force the WindowingSystemInterface to initialize

OpenSceneGraph-3.6
Robert Osfield 6 years ago
parent a86c6dc2c6
commit 3b563ab21b

@ -26,11 +26,16 @@
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
#include <osgViewer/GraphicsWindow>
#include <sstream>
#include <iostream>
#define MIN_NEARFAROFFSET 0.1
// force the WIndowingSystem to initialize to allow us to create a graphics context.
USE_GRAPHICSWINDOW()
class SliceProcessor
{
public:

Loading…
Cancel
Save