debugging opengl interface.