Making modifications to OpenGL functions