Created attachment 130076 [details] garbled graphics #1 Found the problem. Seems like using -Ofast wasnt a good idea. Using -03 everything works as it should. Still attaching screenshot showing the problem in case it is useful to others.