From 52b7f7f30838286ebf0b50b83c335e4a40f177b4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 26 Oct 2022 12:32:09 +0900 Subject: [PATCH] [renderer] Fix a comment typo and add a fixme --- libs/video/renderer/glsl/quakeforge.glsl | 2 +- libs/video/renderer/sw/sw_rmain.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/video/renderer/glsl/quakeforge.glsl b/libs/video/renderer/glsl/quakeforge.glsl index 7b284c302..b99f142e2 100644 --- a/libs/video/renderer/glsl/quakeforge.glsl +++ b/libs/video/renderer/glsl/quakeforge.glsl @@ -598,7 +598,7 @@ in vec2 uv; void main () { - // slight offset on y is to avoid the singularity straight aheat + // slight offset on y is to avoid the singularity straight ahead vec2 xy = (2.0 * uv - vec2 (1, 1.00002)) * (vec2(1, -aspect)); float r = sqrt (dot (xy, xy)); vec2 cs = vec2 (cos (r * fov), sin (r * fov)); diff --git a/libs/video/renderer/sw/sw_rmain.c b/libs/video/renderer/sw/sw_rmain.c index 61e9aa680..6fc5069ba 100644 --- a/libs/video/renderer/sw/sw_rmain.c +++ b/libs/video/renderer/sw/sw_rmain.c @@ -184,6 +184,8 @@ reset_sw_components (ecs_registry_t *reg) pool->count = 0; // remove component from every entity // reserve first component object (render id 0) for the world // pseudo-entity. + //FIXME takes advantage of the lack of checks for the validity of the + //entity id. Ent_SetComponent (0, sw_comps[i], reg, 0); // make sure entity 0 gets allocated a new component object as the // world pseudo-entity currently has no actual entity (FIXME)