Fixed uninitialized variable error that was causing the clipping plane to be set incorrectly when rendering some stars.
parent
8b470cca63
commit
cd22f3532d
|
@ -3611,7 +3611,7 @@ void Renderer::draw(const Observer& observer,
|
|||
|
||||
// Account for ellipsoidal objects
|
||||
float eradius = radius;
|
||||
if (iter->body != NULL)
|
||||
if (iter->renderableType == RenderListEntry::RenderableBody)
|
||||
{
|
||||
Vec3f semiAxes = iter->body->getSemiAxes();
|
||||
float minSemiAxis = min(semiAxes.x, min(semiAxes.y, semiAxes.z));
|
||||
|
|
Loading…
Reference in New Issue