cleanup unused function in webglRenderer