3D editor stable with path tracer
This commit is contained in:
parent
8bec5d1ab7
commit
5ac4d56d32
11 changed files with 144 additions and 19 deletions
|
|
@ -40,7 +40,7 @@ namespace tp {
|
|||
void allocateBuffer(Index2D size) {
|
||||
deleteBuffer();
|
||||
mBuff = (tType*) mAlloc.allocate(sizeof(tType) * size.x * size.y);
|
||||
for (ualni i = 0; i < mSize.x * mSize.y; i++) {
|
||||
for (ualni i = 0; i < size.x * size.y; i++) {
|
||||
new (mBuff + i) tType();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue