소스 검색

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)