Global cleanup function Shared by both GL and non-GL code paths
| 219 | // Global cleanup function |
| 220 | // Shared by both GL and non-GL code paths |
| 221 | void cleanup() |
| 222 | { |
| 223 | sdkDeleteTimer(&timer); |
| 224 | |
| 225 | // unregister this buffer object from CUDA C |
| 226 | if (cuda_pbo_resource) { |
| 227 | cudaGraphicsUnregisterResource(cuda_pbo_resource); |
| 228 | glDeleteBuffers(1, &pbo); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | void cleanup_all() |
| 233 | { |
no test coverage detected