diff --git a/libc3/struct.c b/libc3/struct.c
index bdce226..920dc23 100644
--- a/libc3/struct.c
+++ b/libc3/struct.c
@@ -28,7 +28,6 @@ void struct_clean (s_struct *s)
uw i = 0;
const s_sym *sym;
assert(s);
- assert(s->type);
data = s->data;
while (i < s->type.map.count) {
if (tag_type(s->type.map.value + i, &sym)) {
diff --git a/libc3/window/sdl2/gl_camera.c b/libc3/window/sdl2/gl_camera.c
index 02dd038..fd57698 100644
--- a/libc3/window/sdl2/gl_camera.c
+++ b/libc3/window/sdl2/gl_camera.c
@@ -18,9 +18,6 @@
s_gl_camera * gl_camera_init (s_gl_camera *camera, uw w, uw h)
{
assert(camera);
- assert(window);
- assert(window->w);
- assert(window->h);
gl_camera_set_aspect_ratio(camera, w, h);
camera->clip_z_far = 1000;
camera->clip_z_near = 0.1;
diff --git a/libc3/window/sdl2/gl_sphere.c b/libc3/window/sdl2/gl_sphere.c
index b5ad723..770b11c 100644
--- a/libc3/window/sdl2/gl_sphere.c
+++ b/libc3/window/sdl2/gl_sphere.c
@@ -39,10 +39,10 @@ s_gl_sphere * gl_sphere_init (s_gl_sphere *sphere, uw segments_u,
s_gl_3d *p;
f64 r;
f64 z;
- assert(s);
- if (! segments_u)
+ assert(sphere);
+ if (segments_u < 3)
segments_u = 3;
- if (! segments_v)
+ if (segments_v < 2)
segments_v = 2;
sphere->segments_u = segments_u;
sphere->segments_v = segments_v;