This reverts commit 753ba67d65, in preparation from the merge of the gles3 branch, as the VisualServer code changed too much to port this commit over during merge conflicts resolution. It could be readded afterwards.
753ba67d65