draw functions now have a very basic check for a openGL context.