Fixed validation error caused by deleting empty batches
This commit is contained in:
parent
f0c09817ce
commit
c5bca4111b
|
@ -122,7 +122,7 @@ namespace SHADE
|
||||||
std::unique_ptr<char> matPropsData;
|
std::unique_ptr<char> matPropsData;
|
||||||
Byte matPropsDataSize = 0;
|
Byte matPropsDataSize = 0;
|
||||||
Byte singleMatPropAlignedSize = 0;
|
Byte singleMatPropAlignedSize = 0;
|
||||||
Byte singleMatPropSize = 0;
|
Byte singleMatPropSize = 0;
|
||||||
bool isCPUBuffersDirty = true;
|
bool isCPUBuffersDirty = true;
|
||||||
// GPU Buffers
|
// GPU Buffers
|
||||||
TripleBuffer drawDataBuffer;
|
TripleBuffer drawDataBuffer;
|
||||||
|
|
|
@ -69,9 +69,9 @@ namespace SHADE
|
||||||
|
|
||||||
batch->Remove(renderable);
|
batch->Remove(renderable);
|
||||||
|
|
||||||
// If batch is empty, remove batch
|
// TODO: If the pipeline is unloaded, we remove the batch
|
||||||
if (batch->IsEmpty())
|
/*if (batch->IsEmpty() && !batch->GetPipeline())
|
||||||
batches.erase(batch);
|
batches.erase(batch);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void SHSuperBatch::Clear() noexcept
|
void SHSuperBatch::Clear() noexcept
|
||||||
|
|
Loading…
Reference in New Issue