Jump to content
  • Advertisement
Sign in to follow this  
ekba89

glut changing screen

This topic is 2588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've 2 screens 1 of them is game screen and one of them is menu screen. And they both work individually when i start with it. But the problem is when i start with menu screen and start game from there only bitmap text are written to the screen. And when i resize window it starts to work properly. So i tried calling resize function manually when i start the game but it doesn't work. Also i tried going to menu screen from game and it works too. I can show you my code if you need to know anything since i don't know where can be problem i don't add code. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
I fixed the problem by adding the code below to my start game function. But i still don't know what causes the problem and why adding this code solves it. So if anyone has the same problem my solution is doing this and if someone can explain what's going on who knows what causes this i really appreciate.


renderScene();
changeSize(screenWidth, screenHeight);
renderScene();

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!