More work on manual OpenGL rendering