More work on OpenGL rendering