Made a quality assurance world that will need to be used before creating a pull request

This commit is contained in:
Tleety
2016-02-02 16:06:42 +01:00
parent 7b4826cb44
commit b131f56f5e
6 changed files with 1367 additions and 2 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ void RenderSystem::Update(double dt)
scene.Viewport = Rectangle(1280, 720);
auto cSceneLight = m_World->GetComponents("SceneLight");
if (cSceneLight != nullptr) {
if (cSceneLight != nullptr && cSceneLight->begin() != cSceneLight->end()) {
m_RenderFrame->Gamma = (double)(*cSceneLight->begin())["Gamma"];
m_RenderFrame->Exposure = (double)(*cSceneLight->begin())["Exposure"];
scene.AmbientColor = (glm::vec4)(*cSceneLight->begin())["AmbientColor"];