[renderer] Fix a comment typo and add a fixme

This commit is contained in:
Bill Currie 2022-10-26 12:32:09 +09:00
parent 20c861027e
commit 52b7f7f308
2 changed files with 3 additions and 1 deletions

View File

@ -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));

View File

@ -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)