MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / drop

Method drop

src/graphics/texture.rs:180–188  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

178
179impl Drop for RawTexture {
180 fn drop(&mut self) {
181 unsafe {
182 self.gfx.state.gl.delete_texture(self.id);
183
184 if self.gfx.state.current_texture.get() == Some(self.id) {
185 self.gfx.state.current_texture.set(None);
186 }
187 }
188 }
189}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected