diff options
Diffstat (limited to 'o3d/samples/beachdemo/beachdemo.js')
-rw-r--r-- | o3d/samples/beachdemo/beachdemo.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/o3d/samples/beachdemo/beachdemo.js b/o3d/samples/beachdemo/beachdemo.js index 4b99bd9..901cfd9 100644 --- a/o3d/samples/beachdemo/beachdemo.js +++ b/o3d/samples/beachdemo/beachdemo.js @@ -1834,9 +1834,21 @@ function onAllLoadingFinished() { showHint(); + window.o3d_prepForSelenium = prepForSelenium; window.g_finished = true; // for selenium testing. } +// Put the demo in a consistent state. +function prepForSelenium() { + // Turn off the perf monitor. + g_perfMon = null; + + // Set the render targets to a fixed size. + g_renderTargetWidth = 256; + g_renderTargetHeight = 256; + setupRenderTargets(); +} + /** * Creates the client area. */ |