Skip to content

Commit

Permalink
Removing WebGL-2D js file.
Browse files Browse the repository at this point in the history
  • Loading branch information
taisel committed Jun 5, 2011
1 parent f57c1e8 commit a1b7ce0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions js/GameBoyCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -4680,13 +4680,7 @@ GameBoyCore.prototype.initLCD = function () {
//Nasty since we are throwing on purpose to force a try/catch fallback
throw(new Error("Canvas 2D API path disabled."));
}
if (settings[11]) {
WebGL2D.enable(this.canvas);
this.drawContext = this.canvas.getContext("webgl-2d");
}
else {
this.drawContext = this.canvas.getContext("2d");
}
this.drawContext = this.canvas.getContext("2d");
//Get a CanvasPixelArray buffer:
try {
this.canvasBuffer = this.drawContext.createImageData(this.width, this.height);
Expand Down

0 comments on commit a1b7ce0

Please sign in to comment.