fix sw_quad_is_aligned

This commit is contained in:
Bigfoot71 2025-05-18 21:35:22 +02:00
parent e75329ab85
commit a71ec577ac

7
src/external/rlsw.h vendored
View file

@ -2899,7 +2899,12 @@ static inline bool sw_quad_is_axis_aligned(void)
int horizontal = 0;
int vertical = 0;
for (int i = 0; i < 4; i++) {
for (int i = 0; i < 4; i++)
{
if (RLSW.vertexBuffer[i].homogeneous[3] != 1.0f) {
return false;
}
const float* v0 = RLSW.vertexBuffer[i].position;
const float* v1 = RLSW.vertexBuffer[(i + 1) % 4].position;