Fix fullbright alpha in fixed-function.
Prevent debug visualizations from writing to the z-buffer (caused occlusion weirdness)
Be super sure not to let rigged vert weights extend beyond actual joint count.
Lazy workaround avoiding undefined behavior for rigged meshes with invalid joints.