MCPcopy Create free account
hub / github.com/a2flo/floor / delete_gl_buffer

Method delete_gl_buffer

compute/compute_buffer.cpp:70–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void compute_buffer::delete_gl_buffer() {
71 if(has_external_gl_object) return;
72 if(gl_object == 0) return;
73 glDeleteBuffers(1, &gl_object);
74 gl_object = 0;
75}
76
77bool compute_buffer::create_gl_buffer(const bool copy_host_data) {
78 if(has_external_gl_object) return true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected