Reworked the binding of the OpenGL objects