mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-13 17:09:05 -05:00
Address Ghoul PR comments
This commit is contained in:
Submodule ext/ghoul updated: 13a4c05ba8...3a1d641261
@@ -441,9 +441,9 @@ void RenderableModel::initializeGL() {
|
||||
|
||||
ghoul::opengl::updateUniformLocations(*_program, _uniformCache, UniformNames);
|
||||
|
||||
float maximumDistanceSquared = 0;
|
||||
_geometry->initialize(maximumDistanceSquared);
|
||||
setBoundingSphere(glm::sqrt(maximumDistanceSquared));
|
||||
_geometry->initialize();
|
||||
_geometry->calculateBoundingRadius();
|
||||
setBoundingSphere(glm::sqrt(_geometry->boundingRadius()));
|
||||
}
|
||||
|
||||
void RenderableModel::deinitializeGL() {
|
||||
|
||||
@@ -250,8 +250,7 @@ void RenderableModelProjection::initializeGL() {
|
||||
_projectionComponent.initializeGL();
|
||||
|
||||
float bs = boundingSphere();
|
||||
float temp = 0.f;
|
||||
_geometry->initialize(temp);
|
||||
_geometry->initialize();
|
||||
setBoundingSphere(bs); // ignore bounding sphere set by geometry.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user