Skip to content
Snippets Groups Projects
Unverified Commit e076fcd7 authored by Ray Schamp's avatar Ray Schamp Committed by GitHub
Browse files

Merge pull request #3169 from rschamp/fix-canvas-hack

Use new APIs for renderer and canvas
parents 55ae011b 30460a5d
No related branches found
No related tags found
No related merge requests found
......@@ -52,9 +52,9 @@ class Stage extends React.Component {
colorInfo: null,
question: null
};
if (this.props.vm.runtime.renderer) {
this.renderer = this.props.vm.runtime.renderer;
this.canvas = this.props.vm.runtime.renderer._gl.canvas;
if (this.props.vm.renderer) {
this.renderer = this.props.vm.renderer;
this.canvas = this.renderer.canvas;
} else {
this.canvas = document.createElement('canvas');
this.renderer = new Renderer(this.canvas);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment