3D editor stable with path tracer

This commit is contained in:
IlyaShurupov 2024-06-18 19:36:47 +03:00
parent 19706ed738
commit e8001cd95b
11 changed files with 144 additions and 19 deletions

View file

@ -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();
}
}