Revert "fix: Y origin in prepare_chipmunk_shader"

This commit is contained in:
brombrom-hani
2025-09-01 14:35:35 +02:00
committed by GitHub
parent 538480b348
commit 6b9edcdd69
+2 -3
View File
@@ -109,9 +109,8 @@ static void prepare_chipmunk_shader(struct gfx_render_job *job, void *data)
r = (Rectangle) { 0, 0, sp->rect.w, sp->rect.h };
}
int sy_bottom = sp->rect.h - (r.y + r.h);
glUniform2f(s->bot_left, r.x, sy_bottom);
glUniform2f(s->top_right, r.x + r.w, sy_bottom + r.h);
glUniform2f(s->bot_left, r.x, r.y);
glUniform2f(s->top_right, r.x + r.w, r.y + r.h);
}
void sprite_init_sact(void)