MCPcopy Create free account
hub / github.com/RenderKit/ospray / ~Texture2D

Method ~Texture2D

modules/cpu/texture/Texture2D.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace ospray {
44
45Texture2D::~Texture2D()
46{
47 // If no one else is referencing the MIP map buffer (just this object and the
48 // cache map), we need to remove it from the MIP map cache so the buffer will
49 // be deleted as well
50 if (mipMapData && mipMapData.use_count() == 2)
51 getISPCDevice().getMipMapCache().remove(texData->data());
52}
53
54std::string Texture2D::toString() const
55{

Callers

nothing calls this directly

Calls 2

removeMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected