Fixed cubemaps being generated over and over again each frame.
This commit is contained in:
@@ -17,6 +17,7 @@ void CubeMapPass::LoadTextures(std::string input)
|
||||
m_CubeMapTextures.push_back(img);
|
||||
}
|
||||
GenerateCubeMapTexture();
|
||||
m_PreviusCubeMapTexture = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user