MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / deleteTexture

Function deleteTexture

cpp/0_Introduction/simpleCUDA2GL/main.cpp:451–457  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

449//!
450////////////////////////////////////////////////////////////////////////////////
451void deleteTexture(GLuint *tex)
452{
453 glDeleteTextures(1, tex);
454 SDK_CHECK_ERROR_GL();
455
456 *tex = 0;
457}
458
459////////////////////////////////////////////////////////////////////////////////
460// Program main

Callers 3

FreeResourceFunction · 0.70
cleanupFunction · 0.50
cleanupFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected