MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / ReleaseIndexPointer

Method ReleaseIndexPointer

Sources/nCine/Graphics/Geometry.cpp:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 }
156
157 void Geometry::ReleaseIndexPointer()
158 {
159 // Don't flush and unmap if the IBO is not custom
160 if (ibo_ != nullptr && iboParams_.mapBase != nullptr) {
161 iboParams_.object->FlushMappedBufferRange(iboParams_.offset, iboParams_.size);
162 iboParams_.object->Unmap();
163 }
164 iboParams_.mapBase = nullptr;
165 }
166
167 void Geometry::SetHostIndexPointer(const GLushort* indexPointer)
168 {

Callers 2

DrawMethod · 0.80
CollectCommandsMethod · 0.80

Calls 2

UnmapMethod · 0.80

Tested by

no test coverage detected