mirror of
https://github.com/greggman/virtual-webgl.git
synced 2026-02-01 16:07:52 +00:00
more extension stuff
This commit is contained in:
parent
185f3993ec
commit
6f324dece6
@ -429,6 +429,7 @@
|
||||
|
||||
function createGetExtensionWrapper(origFn) {
|
||||
return function(name) {
|
||||
name = name.toLowerCase();
|
||||
// just like the real context each extension needs a virtual class because each use
|
||||
// of the extension might be modified (as in people adding properties to it)
|
||||
const existingExt = this._extensions[name];
|
||||
@ -460,6 +461,8 @@
|
||||
wrapper[key] = value;
|
||||
}
|
||||
|
||||
this._extensions[name] = wrapper;
|
||||
|
||||
return wrapper;
|
||||
};
|
||||
}
|
||||
|
||||
@ -596,6 +596,8 @@
|
||||
wrapper[key] = value;
|
||||
}
|
||||
|
||||
this._extensions[name] = wrapper;
|
||||
|
||||
return wrapper;
|
||||
},
|
||||
activeTexture(unit) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user