Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8a09e85c authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

improve one line of group part container

parent 0b61b0b7
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,7 @@ public: ...@@ -184,7 +184,7 @@ public:
attributesBuffer = (AttributeClass*)FAlignedMemory::Allocate32BAligned(blockHeader->attributeOffset*NbAttributesPerParticle); attributesBuffer = (AttributeClass*)FAlignedMemory::Allocate32BAligned(blockHeader->attributeOffset*NbAttributesPerParticle);
memset(attributesBuffer, 0, blockHeader->attributeOffset*NbAttributesPerParticle); memset(attributesBuffer, 0, blockHeader->attributeOffset*NbAttributesPerParticle);
for(unsigned idxAttribute = 0 ; idxAttribute < NbAttributesPerParticle ; ++idxAttribute){ for(unsigned idxAttribute = 0 ; idxAttribute < NbAttributesPerParticle ; ++idxAttribute){
particleAttributes[idxAttribute+NbSymbAttributes] = &attributesBuffer[idxAttribute*(blockHeader->nbParticlesAllocatedInGroup/sizeof(AttributeClass))]; particleAttributes[idxAttribute+NbSymbAttributes] = &attributesBuffer[idxAttribute*nbParticlesAllocatedInGroup];
} }
// Set all index to not used // Set all index to not used
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment