[webgl] Fix worker mode, closes #1804

This commit is contained in:
badlogic 2021-06-10 15:05:13 +02:00
parent cb179c73dc
commit 6314eaf908
7 changed files with 7 additions and 7 deletions

View File

@ -11031,7 +11031,7 @@ var spine;
function ManagedWebGLRenderingContext(canvasOrContext, contextConfig) {
if (contextConfig === void 0) { contextConfig = { alpha: "true" }; }
this.restorables = new Array();
if (canvasOrContext instanceof HTMLCanvasElement || canvasOrContext instanceof EventTarget) {
if (!((canvasOrContext instanceof WebGLRenderingContext) || (canvasOrContext instanceof WebGL2RenderingContext))) {
this.setupCanvas(canvasOrContext, contextConfig);
}
else {

File diff suppressed because one or more lines are too long

View File

@ -10763,7 +10763,7 @@ var spine;
function ManagedWebGLRenderingContext(canvasOrContext, contextConfig) {
if (contextConfig === void 0) { contextConfig = { alpha: "true" }; }
this.restorables = new Array();
if (canvasOrContext instanceof HTMLCanvasElement || canvasOrContext instanceof EventTarget) {
if (!((canvasOrContext instanceof WebGLRenderingContext) || (canvasOrContext instanceof WebGL2RenderingContext))) {
this.setupCanvas(canvasOrContext, contextConfig);
}
else {

File diff suppressed because one or more lines are too long

View File

@ -10763,7 +10763,7 @@ var spine;
function ManagedWebGLRenderingContext(canvasOrContext, contextConfig) {
if (contextConfig === void 0) { contextConfig = { alpha: "true" }; }
this.restorables = new Array();
if (canvasOrContext instanceof HTMLCanvasElement || canvasOrContext instanceof EventTarget) {
if (!((canvasOrContext instanceof WebGLRenderingContext) || (canvasOrContext instanceof WebGL2RenderingContext))) {
this.setupCanvas(canvasOrContext, contextConfig);
}
else {

File diff suppressed because one or more lines are too long

View File

@ -34,7 +34,7 @@ module spine.webgl {
private restorables = new Array<Restorable>();
constructor(canvasOrContext: HTMLCanvasElement | WebGLRenderingContext | EventTarget | WebGL2RenderingContext, contextConfig: any = { alpha: "true" }) {
if (canvasOrContext instanceof HTMLCanvasElement || canvasOrContext instanceof EventTarget) {
if (!((canvasOrContext instanceof WebGLRenderingContext) || (canvasOrContext instanceof WebGL2RenderingContext))) {
this.setupCanvas(canvasOrContext, contextConfig);
} else {
this.gl = canvasOrContext;