Add missing function pre-declaration. Partially fixes issue ##116964. (Render no longer crashes, but shading is broken)