| 68 | } |
| 69 | |
| 70 | void 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 | |
| 77 | bool compute_buffer::create_gl_buffer(const bool copy_host_data) { |
| 78 | if(has_external_gl_object) return true; |
nothing calls this directly
no outgoing calls
no test coverage detected