Yeah, but then it has to be something in between that code and the objectdrawing code which works too.
But I am not doing anything in between other than what is written in the code above. The drawText method gets called literally right after the renderObjects() call.
But even if I just call the drawText() code it doesn't work
Just for your information, I am using GLFW instead of SDL but that shouldn't matter as far as I can tell.