textLayer is not used anymore in render context.

It should be removed to prevent confusion when reading the code.
Merge pull request #5318 from mitar/patch-2

textLayer is not used anymore in render context