| Index: samples/o3d-webgl/client.js
|
| ===================================================================
|
| --- samples/o3d-webgl/client.js (revision 45712)
|
| +++ samples/o3d-webgl/client.js (working copy)
|
| @@ -103,6 +103,7 @@
|
| renderEvent.elapsedTime = 0.0;
|
| else
|
| renderEvent.elapsedTime = now - client.then_;
|
| + client.updateDisplayInfo_();
|
| if (client.render_callback) {
|
| client.render_callback(renderEvent);
|
| }
|
| @@ -538,8 +539,7 @@
|
| this.gl = gl;
|
|
|
| gl.client = this;
|
| - gl.displayInfo = {width: canvas.width,
|
| - height: canvas.height};
|
| + this.updateDisplayInfo_();
|
| };
|
|
|
|
|
| @@ -890,3 +890,11 @@
|
| o3d.Client.prototype.canvas = null;
|
|
|
|
|
| +/**
|
| + * Updates the display information attached to the GL.
|
| + * @private
|
| + */
|
| +o3d.Client.prototype.updateDisplayInfo_ = function() {
|
| + this.gl.displayInfo = {width: this.width,
|
| + height: this.height};
|
| +};
|
|
|