Fix osgViewer USE_GRAPHICSWINDOW without a windowing system
There is no way for the user to know whether OSG was compiled with a windowing system. This means calling USE_GRAPHICSWINDOW() in client libraries was unsafe in the case of the "None" windowing system, as it would fail to link. Turns the call into a no-op in that case.
This commit is contained in:
committed by
Robert Osfield
parent
4093860c32
commit
44d3da02a9
@@ -37,5 +37,6 @@
|
||||
#cmakedefine OSG_USE_DEPRECATED_API
|
||||
#cmakedefine OSG_ENVVAR_SUPPORTED
|
||||
#cmakedefine OSG_WINDOWING_SYSTEM_CARBON
|
||||
#cmakedefine OSG_WINDOWING_SYSTEM_NONE
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user