Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Chris F

Texture gets destroyed when i change to fullscreen

This topic is 6916 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 have modified the source code from NeHe''s lesson 6 tutorial. I put everything in classes and added support for dsound and dinput. My problem is when I switch to display mode (fullscreen to windowed or windowed to fullscreen) my textures seem to get destroyed, I''m not sure if their actually getting destroyed but the scene gets rendered without a texture afterwards. Is there a special function to reload textures like in d3d? I couldn''t find anything in the source code for lesson 6. I''m new to openGL and I''ve all my 3d programming efforts has been limited to direct3D. Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Hi,

I also have a problem with fullscreen. I try to go to full screen using the NeHe tutorials and I get the error...
"Can''t Create A GL Rendering Context" It works in non fullscreen rendering mode. I have the Intense 3D (old video card RUSH I think). Probably that''s the problem. Any solutions?

Share this post


Link to post
Share on other sites
hmm. there are too many potential problems and you didn''t give enuff info on what exactly you''re doing so I guess I''ll just post what I would check for.

If you''re switching to fullscreen make sure you don''t regenerate (or create another) window you don''t have to close or free off your textures etc when you switch to fullscreen either so make sure you''re not calling the WM_CLOSE message or anything when switching to fullscreen.

Again, I don''t know exactly what you''re doing but I know in my own programs I switch to full and windowed with no problems and no odd texture problems either.

Maybe post what exactly you''re doing to make it switch from windowed to full, including all the calls before and after the switch.

Share this post


Link to post
Share on other sites

  • 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!