Don't use osg::notify

openmw-38
scrawl 9 years ago
parent 06719df868
commit 6f966b8434

@ -2,6 +2,7 @@
#include <cassert> #include <cassert>
#include <stdexcept> #include <stdexcept>
#include <iostream>
#include <SDL_mouse.h> #include <SDL_mouse.h>
#include <SDL_endian.h> #include <SDL_endian.h>
@ -52,7 +53,7 @@ namespace
if (!_gc) if (!_gc)
{ {
osg::notify(osg::NOTICE)<<"Failed to create pbuffer, failing back to normal graphics window."<<std::endl; std::cerr << "Failed to create pbuffer, failing back to normal graphics window." << std::endl;
traits->pbuffer = false; traits->pbuffer = false;
_gc = osg::GraphicsContext::createGraphicsContext(traits.get()); _gc = osg::GraphicsContext::createGraphicsContext(traits.get());
@ -224,8 +225,9 @@ namespace SDLUtil
try { try {
decompressed = decompress(image, static_cast<float>(rotDegrees)); decompressed = decompress(image, static_cast<float>(rotDegrees));
} catch (...) { } catch (std::exception& e) {
osg::notify(osg::NOTICE)<<"Using default cursor."<<std::endl; std::cerr << e.what() << std::endl;
std::cerr <<"Using default cursor."<<std::endl;
return; return;
} }

Loading…
Cancel
Save