浏览代码

Fixes missing code for calling users renderOnce callback

Sean Paul Taylor 14 年之前
父节点
当前提交
1f2c9ad8ff
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      gameplay/src/Game.inl

+ 2 - 0
gameplay/src/Game.inl

@@ -42,6 +42,8 @@ inline PhysicsController* Game::getPhysicsController() const
 template <class T>
 void  Game::renderOnce(T* instance, void (T::*method)(void*), void* cookie)
 {
+    (instance->*method)(cookie);
+    Platform::swapBuffers();
 }
 
 inline void Game::setMultiTouch(bool enabled)