Question

For some odd reason my SFML program won't render anything until I mouse over it, or press a key or do anything that qualifies as an event.

How do I fix this?

Was it helpful?

Solution

When you mouse over, this causes a message to be sent to the application. So probably you have your main loop written incorrectly, so that it won't render until a message is received. But this is a random guess, you should consider always posting your code together with your question.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top