GPUState: Only apply state before drawing
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user