summaryrefslogtreecommitdiffstats
path: root/o3d/samples/o3d-webgl
diff options
context:
space:
mode:
authorluchen@google.com <luchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-15 01:28:05 +0000
committerluchen@google.com <luchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-15 01:28:05 +0000
commitf17acad81fe92eeeb195628a4b2f691697a2de26 (patch)
tree26e0a2618ab8bfdb71cd0f8477f6fb8cd0e0120f /o3d/samples/o3d-webgl
parent9cd4db4af4e3845545de60995b53bff7d6930bbd (diff)
downloadchromium_src-f17acad81fe92eeeb195628a4b2f691697a2de26.zip
chromium_src-f17acad81fe92eeeb195628a4b2f691697a2de26.tar.gz
chromium_src-f17acad81fe92eeeb195628a4b2f691697a2de26.tar.bz2
Adding render-mode demo. Update to client.js to render only if render mode is continuous.
Review URL: http://codereview.chromium.org/2729016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49752 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/samples/o3d-webgl')
-rw-r--r--o3d/samples/o3d-webgl/client.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/o3d/samples/o3d-webgl/client.js b/o3d/samples/o3d-webgl/client.js
index b585b72..869320b 100644
--- a/o3d/samples/o3d-webgl/client.js
+++ b/o3d/samples/o3d-webgl/client.js
@@ -97,8 +97,9 @@ o3d.Renderer.clients_ = [];
o3d.Renderer.renderClients = function() {
for (var i = 0; i < o3d.Renderer.clients_.length; ++i) {
var client = o3d.Renderer.clients_[i];
-
- client.render();
+ if (client.renderMode == o3d.Client.RENDERMODE_CONTINUOUS) {
+ client.render();
+ }
}
};