LogoBox: more error checking
This commit is contained in:
parent
e236182f9b
commit
12eb23e8ec
@ -34,6 +34,10 @@ LogoBox::LogoBox()
|
|||||||
if (obj.load(FileLoader::Path("", "dwlogo.obj")))
|
if (obj.load(FileLoader::Path("", "dwlogo.obj")))
|
||||||
{
|
{
|
||||||
_logoList = obj.render(false);
|
_logoList = obj.render(false);
|
||||||
|
if (_logoList == 0)
|
||||||
|
{
|
||||||
|
cerr << "Error rendering dwlogo.obj" << endl;
|
||||||
|
}
|
||||||
const float * aabb = obj.getAABB();
|
const float * aabb = obj.getAABB();
|
||||||
|
|
||||||
float c_x = (aabb[0] + aabb[3]) / 2.0f;
|
float c_x = (aabb[0] + aabb[3]) / 2.0f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user