Browse Source

Merge pull request #65403 from lawnjelly/batching_ununit_color

Rémi Verschelde 3 years ago
parent
commit
5ccb86276c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gles_common/rasterizer_canvas_batcher.h

+ 1 - 1
drivers/gles_common/rasterizer_canvas_batcher.h

@@ -1335,7 +1335,7 @@ PREAMBLE(bool)::_prefill_line(RasterizerCanvas::Item::CommandLine *p_line, FillS
 
 	// if the color has changed we need a new batch
 	// (only single color line batches supported so far)
-	if (r_fill_state.curr_batch->color != bcol) {
+	if (!change_batch && r_fill_state.curr_batch->color != bcol) {
 		change_batch = true;
 	}