Added code to OpenGLRenderer