Code is unchanged since the patch and it happens in two completely different places that perform very different actions from one another. The error always happens when trying to replace a masked texture and not in any other circumstance. Removing the mask resolves the issue.
__________________
|