updated gml to the 1.4.9999999, where draw_flush() exists. didn't fix the error
The issue might just be that GMS1 uses a too old graphics API, it's not had official support in years... not much I can do about that :(