From b178f75ec88334d1fe3b81021b135587ba50cb2f Mon Sep 17 00:00:00 2001 From: Jon Bell Date: Tue, 29 Mar 2022 17:01:56 -0600 Subject: [PATCH] Reorder quad vertices Fixes a visual issue when updating a texture. Credit Antoine for the fix --- source/base.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/base.c b/source/base.c index 1a6d2b0..9e97d83 100755 --- a/source/base.c +++ b/source/base.c @@ -532,10 +532,10 @@ void C2Di_AppendQuad(void) *idx++ = ctx->vtxBufPos+0; *idx++ = ctx->vtxBufPos+2; - *idx++ = ctx->vtxBufPos+1; - *idx++ = ctx->vtxBufPos+1; - *idx++ = ctx->vtxBufPos+2; *idx++ = ctx->vtxBufPos+3; + *idx++ = ctx->vtxBufPos+0; + *idx++ = ctx->vtxBufPos+3; + *idx++ = ctx->vtxBufPos+1; } void C2Di_AppendVtx(float x, float y, float z, float u, float v, float ptx, float pty, u32 color)