From 6a6d229e4c9caa4696a83afe4b8d8d0627b5cc05 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Thu, 4 Apr 2024 06:30:37 +0100 Subject: [PATCH] Fix bug with multiple strips --- GL/platforms/sh4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GL/platforms/sh4.c b/GL/platforms/sh4.c index ae19d8e..bfa8415 100644 --- a/GL/platforms/sh4.c +++ b/GL/platforms/sh4.c @@ -233,7 +233,9 @@ void SceneListSubmit(Vertex* vertices, int n) { assert(!is_header(v1)); - if(is_header(v2)) { + bool is_trailing = (v1->flags == GPU_CMD_VERTEX_EOL) || is_header(v2); + + if(is_trailing) { // OK so we've hit a new context header // we need to finalize this strip and move on