afritz1 / OpenTESArena

Open-source re-implementation of The Elder Scrolls: Arena.
MIT License
915 stars 68 forks source link

Add buffer ref class for texture reference safety #185

Closed afritz1 closed 3 years ago

afritz1 commented 3 years ago

I noticed during the texture manager refactor that it had been allowing dangling texture references to happen, so I figured that adding a templated buffer ref class for each texture type would help prevent dangling texture references in the future.