LogoBox: more error checking

This commit is contained in:
Josh Holtrop committed 2010-11-25 23:26:11 -05:00
1 parent e236182f9b
commit 12eb23e8ec
1 file changed
+4
+4
View File
@@ -34,6 +34,10 @@ LogoBox::LogoBox()
if (obj.load(FileLoader::Path("", "dwlogo.obj")))
{
_logoList = obj.render(false);
if (_logoList == 0)
{
cerr << "Error rendering dwlogo.obj" << endl;
}
const float * aabb = obj.getAABB();
float c_x = (aabb[0] + aabb[3]) / 2.0f;