From 15f4fded5d6d2a5f22e41e50891e783c026688c0 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 3 Nov 2012 15:35:43 +0200 Subject: [PATCH] Fix a comparison with restart_index An incorrect comparison operator caused a batch meeting certain criteria to unintentionally trigger a primitive restart with its last index instead of rendering it properly. --- source/batch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/batch.cpp b/source/batch.cpp index d6924a80..3f7bffee 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -229,7 +229,7 @@ void Batch::draw() const restart_index = index; } } - else if(restart_index && restart_index