Re-added ability to change shaders #229
|
@ -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] = {};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue