Skip to content

Commit

Permalink
Remove VertexArrayObject polyfill for IE11 (#5957)
Browse files Browse the repository at this point in the history
* Remove VertexArrayObject polyfill for IE11

* removed from index

---------

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky authored Jan 22, 2024
1 parent dd2c7d2 commit 2fdee80
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 325 deletions.
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import './polyfill/object-values.js';
import './polyfill/pointer-lock.js';
import './polyfill/string.js';
import './polyfill/typedarray-fill.js';
import './polyfill/OESVertexArrayObject.js';

// CORE
export * from './core/constants.js';
Expand Down
6 changes: 0 additions & 6 deletions src/platform/graphics/webgl/webgl-graphics-device.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { setupVertexArrayObject } from '../../../polyfill/OESVertexArrayObject.js';
import { math } from '../../../core/math/math.js';
import { Debug } from '../../../core/debug.js';
import { platform } from '../../../core/platform.js';
Expand Down Expand Up @@ -415,11 +414,6 @@ class WebglGraphicsDevice extends GraphicsDevice {
// enable temporary workaround for glBlitFramebuffer failing on Mac Chrome (#2504)
this._tempMacChromeBlitFramebufferWorkaround = isMac && isChrome && !options.alpha;

// init polyfill for VAOs under webgl1
if (!this.isWebGL2) {
setupVertexArrayObject(gl);
}

canvas.addEventListener("webglcontextlost", this._contextLostHandler, false);
canvas.addEventListener("webglcontextrestored", this._contextRestoredHandler, false);

Expand Down
318 changes: 0 additions & 318 deletions src/polyfill/OESVertexArrayObject.js

This file was deleted.

0 comments on commit 2fdee80

Please sign in to comment.