Re-added ability to change shaders #229

Merged
Pycorax merged 3 commits from Fix-BatchCrash into main 2022-11-19 18:49:48 +08:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit b2dc440d03 - Show all commits

View File

@ -218,9 +218,13 @@ namespace SHADE
for (int i = 0; i < SHGraphicsConstants::NUM_FRAME_BUFFERS; ++i)
{
drawDataBuffer[i].Free();
drawDataBuffer[i] = {};
transformDataBuffer[i].Free();
transformDataBuffer[i] = {};
instancedIntegerBuffer[i].Free();
instancedIntegerBuffer[i] = {};
matPropsBuffer[i].Free();
matPropsBuffer[i] = {};
}
}

View File

@ -129,7 +129,7 @@ namespace SHADE
// Otherwise just copy the data over
else
{
bufferHandle->MapWriteUnmap(src, size, 0, 0);
bufferHandle->WriteToMemory(src, size, 0, 0);
}
}
else