Some comments.
This commit is contained in:
parent
bf3690d841
commit
f93d297cb5
|
@ -167,8 +167,9 @@ unsigned int OPENGL_COMPOSITOR::CreateBuffer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ClearBuffer();
|
ClearBuffer();
|
||||||
|
|
||||||
|
// Return to direct rendering (we were asked only to create a buffer, not switch to one)
|
||||||
glBindFramebuffer( GL_FRAMEBUFFER, DIRECT_RENDERING );
|
glBindFramebuffer( GL_FRAMEBUFFER, DIRECT_RENDERING );
|
||||||
m_currentFbo = DIRECT_RENDERING;
|
m_currentFbo = DIRECT_RENDERING;
|
||||||
|
|
||||||
|
|
|
@ -207,9 +207,9 @@ void TOOL_MANAGER::dispatchInternal( TOOL_EVENT& aEvent )
|
||||||
st->wakeupEvent = aEvent;
|
st->wakeupEvent = aEvent;
|
||||||
st->pendingWait = false;
|
st->pendingWait = false;
|
||||||
st->waitEvents.clear();
|
st->waitEvents.clear();
|
||||||
st->cofunc->Resume();
|
if( !st->cofunc->Resume() )
|
||||||
if( !st->cofunc->Running() )
|
|
||||||
{
|
{
|
||||||
|
// The couroutine has finished
|
||||||
finishTool( st );
|
finishTool( st );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -258,6 +258,7 @@ void TOOL_MANAGER::finishTool( TOOL_STATE* aState )
|
||||||
{
|
{
|
||||||
wxASSERT( m_activeTools.front() == aState->theTool->GetId() );
|
wxASSERT( m_activeTools.front() == aState->theTool->GetId() );
|
||||||
|
|
||||||
|
// Deactivate the most recent tool and remove it from the active tools queue
|
||||||
aState->idle = true;
|
aState->idle = true;
|
||||||
m_activeTools.erase( m_activeTools.begin() );
|
m_activeTools.erase( m_activeTools.begin() );
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ public:
|
||||||
CONTEXT_MENU_TRIGGER aTrigger );
|
CONTEXT_MENU_TRIGGER aTrigger );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows a tool pass the already handled event to be passed to the next tool on the stack.
|
* Allows a tool to pass the already handled event to the next tool on the stack.
|
||||||
*/
|
*/
|
||||||
void PassEvent()
|
void PassEvent()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue