GPUState: Only apply state before drawing

This commit is contained in:
2020-08-17 18:08:47 +02:00
parent 482a51aabf
commit 536c2e0ec9
7 changed files with 20 additions and 18 deletions

View File

@@ -300,6 +300,8 @@ GLBatch::~GLBatch()
void GLBatch::bind(int i_first)
{
GPU_context_active_get()->state_manager->apply_state();
if (flag & GPU_BATCH_DIRTY) {
vao_cache_.clear();
}