MCPcopy Create free account
hub / github.com/DentonW/DevIL / ivec_align_buffer

Function ivec_align_buffer

DevIL/src-IL/src/il_alloc.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void *ivec_align_buffer(void *buffer, const ILsizei size)
75{
76 if( (ILsizei)buffer % 16 != 0 ) {
77 void *aligned_buffer = vec_malloc( size );
78 memcpy( aligned_buffer, buffer, size );
79 ifree( buffer );
80 return aligned_buffer;
81 }
82 return buffer;
83}
84#endif
85
86

Callers

nothing calls this directly

Calls 1

vec_mallocFunction · 0.85

Tested by

no test coverage detected