From b27275b88759d381e07ee0ff75c91d01b963da73 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 3 Dec 2025 18:15:30 +0100 Subject: [PATCH] hw_batching: fix typo in non shader polygon comparitor checked poly1 against poly1 sky --- src/hardware/hw_batching.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/hw_batching.c b/src/hardware/hw_batching.c index 5096bea22..4d6b1ea6e 100644 --- a/src/hardware/hw_batching.c +++ b/src/hardware/hw_batching.c @@ -214,7 +214,7 @@ static int comparePolygonsNoShaders(const void *p1, const void *p2) const PolygonArrayEntry *poly2 = *(PolygonArrayEntry *const *)p2; const GLMipmap_t *texture1 = poly1->hash & 0x80000000 ? NULL : poly1->texture; - const GLMipmap_t *texture2 = poly1->hash & 0x80000000 ? NULL : poly2->texture; + const GLMipmap_t *texture2 = poly2->hash & 0x80000000 ? NULL : poly2->texture; // skywalls and horizon lines must retain their order for horizon lines to work if (!texture1 && !texture2)