Skip to content
Prev Previous commit
Next Next commit
correct initializeGLPlot argument
  • Loading branch information
archmoj committed Oct 24, 2019
commit d486dcd56560feca1c8e486bffee31e822f8fda4
3 changes: 1 addition & 2 deletions src/plots/gl3d/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ proto.recoverContext = function() {
var scene = this;
var gl = this.glplot.gl;
var canvas = this.glplot.canvas;
var camera = this.glplot.camera;
var pixelRatio = this.glplot.pixelRatio;
this.glplot.dispose();

Expand All @@ -426,7 +425,7 @@ proto.recoverContext = function() {
requestAnimationFrame(tryRecover);
return;
}
if(!initializeGLPlot(scene, camera, pixelRatio, canvas, gl)) {
if(!initializeGLPlot(scene, pixelRatio, canvas, gl)) {
Lib.error('Catastrophic and unrecoverable WebGL error. Context lost.');
return;
}
Expand Down