Move duplicate shader/program log getting code to a utility function.

As requested in !598 (comment 1494297493) and !598 (comment 1495527716), the changes to the logging have been pulled out into their own MR.

Merge request reports

Loading
Loading