more extension stuff

This commit is contained in:
Gregg Tavares 2023-08-24 09:13:44 -07:00
parent 185f3993ec
commit 6f324dece6
2 changed files with 5 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -596,6 +596,8 @@
wrapper[key] = value;
}
this._extensions[name] = wrapper;
return wrapper;
},
activeTexture(unit) {