Sign in to follow this  
DanoruX

Texture disappearing when switching to fullscreen?

Recommended Posts

For some reason when I toggle to fullscreen my texture (right now I'm only using 1 for testing) disappears and my program only renders a square in the last used glColor3f. I'm probably forgetting to reinitialize something, but I don't know what.

Share this post


Link to post
Share on other sites
when you switch to fullscreen, your opengl context gets reset, so you must reload everything (textures, vertex buffers etc)

Share this post


Link to post
Share on other sites
like DanoruX saiz if u destroy the opengl rc + recreate a new one, all opengl info is lost
perhaps what u can do is just resize the window so its the same size as a fullscreen

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this