1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/games/gracer/files/patch-ac2scene_ac2scene.c
Robert Clausecker acbf6fa6cb games/gracer: fix build with -fno-common
Move a variable definition from header to source file.
This fixes the build on FreeBSD 13+.
While we are at it, rename patches in accordance with makepatch
conventions and add missing dependencies.
2023-04-14 16:16:07 +02:00

38 lines
736 B
C

--- ac2scene/ac2scene.c.orig 2000-03-01 04:26:42 UTC
+++ ac2scene/ac2scene.c
@@ -160,8 +160,6 @@ check_triangle_strip (GrSceneOptHint *hint, GrSurface
return 1;
}
break;
-
- default:
}
return 0;
@@ -232,8 +230,6 @@ check_triangle_fan (GrSceneOptHint *hint, GrSurface *s
return 1;
}
break;
-
- default:
}
return 0;
@@ -315,7 +311,6 @@ check_quad_strip (GrSceneOptHint *hint, GrSurface *sur
return 1;
}
break;
- default:
}
return 0;
@@ -397,8 +392,6 @@ optimize_object (GrObject *obj,
hints[i]->state = GR_SCENE_OPT_QUAD_STRIP_START;
hints[i]->surf->elements = gr_new (GrSElement, num_quads * 2 + 2);
break;
-
- default:
}
}