summaryrefslogtreecommitdiffstats
path: root/o3d/samples
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/samples')
-rw-r--r--o3d/samples/o3djs/util.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/o3d/samples/o3djs/util.js b/o3d/samples/o3djs/util.js
index c5cd6e1..16c0360 100644
--- a/o3d/samples/o3djs/util.js
+++ b/o3d/samples/o3djs/util.js
@@ -853,7 +853,11 @@ o3djs.util.makeClients = function(callback,
for (var cc = 0; cc < clientElements.length; ++cc) {
var element = clientElements[cc];
o3d = element.o3d;
- if (!o3d) {
+ var ready = o3d &&
+ element.client &&
+ element.client.rendererInitStatus >
+ o3djs.util.rendererInitStatus.UNINITIALIZED;
+ if (!ready) {
if (chromeWorkaround) {
if (element.style.width != '100%') {
element.style.width = '100%';