Changeset 1172


Ignore:
Timestamp:
Mar 26, 2012, 8:18:33 PM (9 years ago)
Author:
sam
Message:

test: fix logic bugs in two tutorials.

Location:
trunk/test/tutorial
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tutorial/tut02.cpp

    r1050 r1172  
    6767        m_indices[10] = i16vec3(3, 2, 6);
    6868        m_indices[11] = i16vec3(6, 7, 3);
     69
     70        m_ready = false;
    6971    }
    7072
  • trunk/test/tutorial/tut03.cpp

    r1162 r1172  
    160160    ~Fractal()
    161161    {
    162         /* Signal worker threads for completion. */
     162        /* Signal worker threads for completion and wait for
     163         * them to quit. */
    163164        for (int i = 0; i < MAX_THREADS; i++)
    164165            m_jobqueue.Push(-1);
     166        for (int i = 0; i < MAX_THREADS; i++)
     167            m_donequeue.Pop();
    165168
    166169        Input::UntrackMouse(this);
     
    338341            that->m_donequeue.Push(0);
    339342        }
     343        that->m_donequeue.Push(0);
    340344        return NULL;
    341345    };
Note: See TracChangeset for help on using the changeset viewer.