Fixed create of graphics context by explicting adding USE_GRAPHICSWINDOW to force the WindowingSystemInterface to initialize
This commit is contained in:
parent
a86c6dc2c6
commit
3b563ab21b
@ -26,11 +26,16 @@
|
|||||||
#include <osgDB/ReadFile>
|
#include <osgDB/ReadFile>
|
||||||
#include <osgDB/WriteFile>
|
#include <osgDB/WriteFile>
|
||||||
|
|
||||||
|
#include <osgViewer/GraphicsWindow>
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#define MIN_NEARFAROFFSET 0.1
|
#define MIN_NEARFAROFFSET 0.1
|
||||||
|
|
||||||
|
// force the WIndowingSystem to initialize to allow us to create a graphics context.
|
||||||
|
USE_GRAPHICSWINDOW()
|
||||||
|
|
||||||
class SliceProcessor
|
class SliceProcessor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user