GPU: Add GPU_vertbuf_discard and GPU_BATCH_UNUSED
GPU_vertbuf_discard to clear buffer containers in place. GPU_BATCH_UNUSED to tag batch that are cleared and not immediatly usable.
This commit is contained in:
@@ -139,6 +139,7 @@ void GPU_batch_clear(GPUBatch *batch)
|
||||
}
|
||||
}
|
||||
GPU_batch_vao_cache_clear(batch);
|
||||
batch->phase = GPU_BATCH_UNUSED;
|
||||
}
|
||||
|
||||
void GPU_batch_discard(GPUBatch *batch)
|
||||
|
||||
Reference in New Issue
Block a user