More work on manual OpenGL