From 89829f8153cc89ebe35d6c772ae94b43160fbf88 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 12 Nov 2008 10:30:17 +0000 Subject: [PATCH] Added osgViewerGetVersion() into context creation code as a means of forcing windows to link in osgViewer properly. --- examples/osgmemorytest/osgmemorytest.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/osgmemorytest/osgmemorytest.cpp b/examples/osgmemorytest/osgmemorytest.cpp index dc27e9e6f..ffbaf2238 100644 --- a/examples/osgmemorytest/osgmemorytest.cpp +++ b/examples/osgmemorytest/osgmemorytest.cpp @@ -17,13 +17,15 @@ */ #include +#include #include #include #include #include #include +#include -#include +#include #include #include @@ -79,6 +81,8 @@ class ContextTest : public MemoryTest } else { + std::cerr<<"Error: Unable to create graphis context, problem with running osgViewer-"<tick(); - // use printf's below as C++'s ostream classes use more memory and are more likely to fail when everything // goes wrong with memory allocations.