Added full support for runtime editing of material properties #215
|
@ -122,7 +122,7 @@ namespace SHADE
|
|||
std::unique_ptr<char> matPropsData;
|
||||
Byte matPropsDataSize = 0;
|
||||
Byte singleMatPropAlignedSize = 0;
|
||||
Byte singleMatPropSize = 0;
|
||||
Byte singleMatPropSize = 0;
|
||||
bool isCPUBuffersDirty = true;
|
||||
// GPU Buffers
|
||||
TripleBuffer drawDataBuffer;
|
||||
|
|
|
@ -69,9 +69,9 @@ namespace SHADE
|
|||
|
||||
batch->Remove(renderable);
|
||||
|
||||
// If batch is empty, remove batch
|
||||
if (batch->IsEmpty())
|
||||
batches.erase(batch);
|
||||
// TODO: If the pipeline is unloaded, we remove the batch
|
||||
/*if (batch->IsEmpty() && !batch->GetPipeline())
|
||||
batches.erase(batch);*/
|
||||
}
|
||||
|
||||
void SHSuperBatch::Clear() noexcept
|
||||
|
|
Loading…
Reference in New Issue