remotes/origin/Deprecated_master_20th_November_2022
Robert Osfield 8 years ago
parent 4a6fb5a49a
commit a494cd71e8

@ -452,9 +452,9 @@ class OSG_EXPORT GraphicsContext : public Object
const SwapCallback* getSwapCallback() const { return _swapCallback.get(); }
/** Convenience method for handling whether to call swapbuffers callback or the standard context swapBuffersImplementation.
* swapBuffersCallbackOrImplemenation() is called by swapBuffers() and osg::SwapBuffersOperation, end users should normally
* call swapBuffers() rather than swapBuffersCallbackOrImplemenation(). */
void swapBuffersCallbackOrImplemenation()
* swapBuffersCallbackOrImplementation() is called by swapBuffers() and osg::SwapBuffersOperation, end users should normally
* call swapBuffers() rather than swapBuffersCallbackOrImplementation(). */
void swapBuffersCallbackOrImplementation()
{
if (_state.valid()) _state->frameCompleted();

@ -568,7 +568,7 @@ void GraphicsContext::swapBuffers()
{
if (isCurrent())
{
swapBuffersCallbackOrImplemenation();
swapBuffersCallbackOrImplementation();
clear();
}
else if (_graphicsThread.valid() &&
@ -579,7 +579,7 @@ void GraphicsContext::swapBuffers()
else
{
makeCurrent();
swapBuffersCallbackOrImplemenation();
swapBuffersCallbackOrImplementation();
clear();
}
}

@ -55,7 +55,7 @@ void GraphicsOperation::operator () (Object* object)
void SwapBuffersOperation::operator () (GraphicsContext* context)
{
context->swapBuffersCallbackOrImplemenation();
context->swapBuffersCallbackOrImplementation();
context->clear();
}

Loading…
Cancel
Save