Added camera to PickingPass and fixed memory leak

This commit is contained in:
viktorljung
2016-01-11 10:47:39 +01:00
parent a7b43b06a2
commit b8db80bc40
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ void Renderer::Update(double dt)
void Renderer::Draw(RenderFrame& rf)
{
m_Camera = (*rf.begin())->Camera;
m_Camera = (*rf.begin())->Camera; // Fix this with some better solution
m_PickingPass->Draw(rf);
glClearColor(255.f / 255, 163.f / 255, 176.f / 255, 1.f);