grovesNL / glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
Apache License 2.0
1.2k stars 130 forks source link

Avoid tracking `Self::UniformLocation` in slotmap #59

Closed grovesNL closed 4 years ago

grovesNL commented 4 years ago

We don't have a function like delete_uniform_location unlike all the other tracked resources. So we need to find a way to drop these values automatically.

Instead of the current approach we could either:

grovesNL commented 4 years ago

Actually it looks like WebGlUniformLocation is Clone, so maybe we can just use that.

theypsilon commented 4 years ago

We just talked via email about this, I'll work on a PR addressing this bug.