exchanged render.c with patch aginst orig