Fixed typo
This commit is contained in:
@@ -18,14 +18,14 @@
|
||||
|
||||
using namespace osg;
|
||||
|
||||
static ref_ptr<GraphicsContext::CreateGraphicContexCallback> s_createGraphicsContextCallback;
|
||||
static ref_ptr<GraphicsContext::CreateGraphicContextCallback> s_createGraphicsContextCallback;
|
||||
|
||||
void GraphicsContext::setCreateGraphicsContextCallback(CreateGraphicContexCallback* callback)
|
||||
void GraphicsContext::setCreateGraphicsContextCallback(CreateGraphicContextCallback* callback)
|
||||
{
|
||||
s_createGraphicsContextCallback = callback;
|
||||
}
|
||||
|
||||
GraphicsContext::CreateGraphicContexCallback* GraphicsContext::getCreateGraphicsContextCallback()
|
||||
GraphicsContext::CreateGraphicContextCallback* GraphicsContext::getCreateGraphicsContextCallback()
|
||||
{
|
||||
return s_createGraphicsContextCallback.get();
|
||||
}
|
||||
|
||||
@@ -19,6 +19,20 @@
|
||||
using namespace osg;
|
||||
using namespace OpenThreads;
|
||||
|
||||
struct MyTest
|
||||
{
|
||||
MyTest()
|
||||
{
|
||||
osg::notify(osg::NOTICE)<<"MyTest Constructor"<<std::endl;
|
||||
}
|
||||
~MyTest()
|
||||
{
|
||||
osg::notify(osg::NOTICE)<<"MyTest Constructor"<<std::endl;
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
struct BlockOperation : public GraphicsThread::Operation, public Block
|
||||
{
|
||||
BlockOperation():
|
||||
@@ -60,7 +74,7 @@ int GraphicsThread::cancel()
|
||||
_done = true;
|
||||
|
||||
// cancel the thread..
|
||||
result = Thread::cancel();
|
||||
// result = Thread::cancel();
|
||||
//join();
|
||||
|
||||
// release the frameBlock and _databasePagerThreadBlock incase its holding up thread cancelation.
|
||||
@@ -124,6 +138,8 @@ void GraphicsThread::run()
|
||||
|
||||
osg::notify(osg::INFO)<<"Doing run"<<std::endl;
|
||||
|
||||
MyTest test;
|
||||
|
||||
bool firstTime = true;
|
||||
|
||||
OperationQueue::iterator itr = _operations.begin();
|
||||
|
||||
@@ -20,7 +20,7 @@ using namespace osgProducer;
|
||||
|
||||
namespace osgProducer
|
||||
{
|
||||
struct MyCreateGraphicContexCallback : public osg::GraphicsContext::CreateGraphicContexCallback
|
||||
struct MyCreateGraphicContexCallback : public osg::GraphicsContext::CreateGraphicContextCallback
|
||||
{
|
||||
virtual osg::GraphicsContext* createGraphicsContext(osg::GraphicsContext::Traits* traits)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user