From 595119590dc9e2bb85a8af8fa200ff9eeb7ed6d2 Mon Sep 17 00:00:00 2001 From: DavidWyand-GG Date: Mon, 26 Nov 2012 11:03:42 -0500 Subject: [PATCH] Fix for Issue #155 for Billboard Creation --- Engine/source/ts/tsShapeInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/ts/tsShapeInstance.cpp b/Engine/source/ts/tsShapeInstance.cpp index beb1f7e98..a7cebb027 100644 --- a/Engine/source/ts/tsShapeInstance.cpp +++ b/Engine/source/ts/tsShapeInstance.cpp @@ -194,7 +194,7 @@ void TSShapeInstance::buildInstanceData(TSShape * _shape, bool loadMaterials) animateSubtrees(); // Construct billboards if not done already - if ( loadMaterials && mShapeResource ) + if ( loadMaterials && mShapeResource && GFXDevice::devicePresent() ) mShape->setupBillboardDetails( mShapeResource.getPath().getFullPath() ); }