Revert "Add fix for backwards terrain shadows by Berg"

This reverts commit 85ecd9a3937e7843d9eb4798572651f950bd7555.

    This caused the mini-map to render incorrectly.
    Fixes ticket:4105
Merge branch 'bugfixes' into 3.1