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

This commit is contained in:
Robert Osfield 2018-05-18 12:47:34 +01:00
parent a86c6dc2c6
commit 3b563ab21b

View File

@ -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: