From: Mikko Rasa Date: Sat, 3 Nov 2012 13:35:43 +0000 (+0200) Subject: Fix a comparison with restart_index X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=15f4fded5d6d2a5f22e41e50891e783c026688c0 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. --- 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