cjcliffe/CubicVR.js — Issue #53: Firefox Nightly/Aurora Crashing using <video> for CanvasTexture source
Author: secretrobotron
Created: 2011-12-03 07:58:31+00:00
State: open

I've just tried this on two machines:

In CanvasTexture, change the init to this to let work as well:

```
function CanvasTexture(options) {
var gl = CubicVR.GLCore.gl;

if (options.nodeName === 'VIDEO' || options.nodeName === 'CANVAS' || options.nodeName === 'IMG') {
this.canvasSource = options;
} else {
this.canvasSource = document.createElement('CANVAS');
if (options.width === undefined || options.height === undefined) {
throw new Error('Width and height must be specified for generating a new CanvasTexture.');
} //if
this.canvasSource.width = options.width;
this.canvasSource.height = options.height;
this.canvasContext = this.canvasSource.getContext('2d');
} //if

this.updateFunction = options.update;

this.texture = new CubicVR.Texture();
```

Trying to load a webm from localhost explodes my computers. Two different machines. Two different gfx cards. Two different gfx drivers. Same linux distro. :/

Buh?