Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure testPattern() always has a return condition
The function is already guarded by a conditional in the shader, so we don't need to worry about pc_testpattern being <1. This was tripping up D3D compilers via librashader.
- Loading branch information
33876b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to fix this yet, but this change accidentally caused the smpteBars pattern to get replaced with the colorRamps pattern. What you should've done instead is change the final "
else if(global.pc_testpattern < 5.5)
" to just "else
".Regardless, the patchy-color shader is outdated. When I get some spare time soon, I'm going to be updating both this and patchy-ntsc, and I'll try harder to keep the code reasonably clean and version-controlled so that we don't keep having problems like this.
33876b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good, thanks