winemac: Make the implementation of clearToBlackIfNeeded compatible with core contexts.