Working on #5

Removing deprecated OpenGL code