In display():
You need to render the string before you swap the buffers