Преглед изворни кода

test: fix logic bugs in two tutorials.

legacy
Sam Hocevar sam пре 13 година
родитељ
комит
40be36ec2c
2 измењених фајлова са 7 додато и 1 уклоњено
  1. +2
    -0
      test/tutorial/tut02.cpp
  2. +5
    -1
      test/tutorial/tut03.cpp

+ 2
- 0
test/tutorial/tut02.cpp Прегледај датотеку

@@ -66,6 +66,8 @@ public:
m_indices[9] = i16vec3(1, 0, 4);
m_indices[10] = i16vec3(3, 2, 6);
m_indices[11] = i16vec3(6, 7, 3);

m_ready = false;
}

virtual void TickGame(float deltams)


+ 5
- 1
test/tutorial/tut03.cpp Прегледај датотеку

@@ -159,9 +159,12 @@ public:

~Fractal()
{
/* Signal worker threads for completion. */
/* Signal worker threads for completion and wait for
* them to quit. */
for (int i = 0; i < MAX_THREADS; i++)
m_jobqueue.Push(-1);
for (int i = 0; i < MAX_THREADS; i++)
m_donequeue.Pop();

Input::UntrackMouse(this);
#if !defined __native_client__
@@ -337,6 +340,7 @@ public:
that->DoWork(line);
that->m_donequeue.Push(0);
}
that->m_donequeue.Push(0);
return NULL;
};



Loading…
Откажи
Сачувај