Set both flags when g3_project_vertex hits a vertex at zero depth

The expression used & instead of |, so neither PF_OVERFLOW nor
PF_PROJECTED was ever set on that path.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Goober5000andClaude Fable 5.1 committed 2026-09-17 23:15:11 -04:00
1 parent 0c33d9b90a
commit b519bc8945
1 file changed
+1 -1
+1 -1
View File
@@ -230,7 +230,7 @@ int g3_project_vertex(vertex *p)
p->screen.xyw.x = 0.0;
p->screen.xyw.y = 0.0;
p->screen.xyw.w = 0.0;
p->flags |= PF_OVERFLOW & PF_PROJECTED;
p->flags |= PF_OVERFLOW | PF_PROJECTED;
return p->flags;
}