Procházet zdrojové kódy

Fixing bug #4. Thanks ksmk

Panagiotis Christopoulos Charitos před 9 roky
rodič
revize
2a9e43ecc7
2 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 2 2
      include/anki/gr/Pipeline.h
  2. 1 1
      src/core/App.cpp

+ 2 - 2
include/anki/gr/Pipeline.h

@@ -143,7 +143,7 @@ public:
 class PipelineInitInfo : public PipelineInitInfoState
 {
 public:
-	Array<ShaderPtr, 6> m_shaders;
+	Array<ShaderPtr, U(ShaderType::COUNT)> m_shaders;
 
 	U64 computeHash() const
 	{
@@ -151,7 +151,7 @@ public:
 			anki::computeHash(static_cast<const PipelineInitInfoState*>(this),
 				sizeof(PipelineInitInfoState));
 
-		Array<U64, m_shaders.getSize()> uuids;
+		Array<U64, U(ShaderType::COUNT)> uuids;
 		for(U i = 0; i < m_shaders.getSize(); ++i)
 		{
 			U64 uuid = (m_shaders[i].isCreated()) ? m_shaders[i]->getUuid() : 0;

+ 1 - 1
src/core/App.cpp

@@ -403,7 +403,7 @@ Error App::mainLoop()
 		timer.stop();
 		if(timer.getElapsedTime() < m_timerTick)
 		{
-			HighRezTimer::sleep(getTimerTick() - timer.getElapsedTime());
+			HighRezTimer::sleep(m_timerTick - timer.getElapsedTime());
 		}
 
 		++m_globalTimestamp;