Merge pull request #12530 from iwubcode/custom_shaders_compilation_fixes VideoCommon: fix some issues when compiling custom shaders