----------------------------------------------------------------------------- immutable -----------------------------------------------------------------------------
| 85 | // immutable |
| 86 | //----------------------------------------------------------------------------- |
| 87 | void GFXPrimitiveBufferHandle::immutable(GFXDevice *theDevice, U32 indexCount, U32 primitiveCount, void* data, String desc) |
| 88 | { |
| 89 | StrongRefPtr<GFXPrimitiveBuffer>::operator=( theDevice->allocPrimitiveBuffer(indexCount, primitiveCount, GFXBufferTypeImmutable, data) ); |
| 90 | |
| 91 | #ifdef TORQUE_DEBUG |
| 92 | if( desc.isNotEmpty() ) |
| 93 | getPointer()->mDebugCreationPath = desc; |
| 94 | #endif |
| 95 | } |
no test coverage detected