Commit f93d297c authored by Maciej Suminski's avatar Maciej Suminski

Some comments.

parent bf3690d8
...@@ -167,8 +167,9 @@ unsigned int OPENGL_COMPOSITOR::CreateBuffer() ...@@ -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 ) ...@@ -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 ) ...@@ -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: ...@@ -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()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment