forked from teamnwah/openmw-tes3coop
Don't use osg::notify
This commit is contained in:
parent
06719df868
commit
6f966b8434
1 changed files with 5 additions and 3 deletions
|
@ -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…
Reference in a new issue