Jump to content
  • Advertisement

Archived

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

SGreth

OpenGL Re-Initializing OpenGL = No Depth Buffer

This topic is 6207 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

Happy T-Day Everyone! I''m trying to re-initialize the display in a new resolution but to no avail! When my scene comes back it appears that I have no depth buffer! I don''t want to post my code here, but I''m pretty much using NeHe''s cleanup code and init code (some mods here and there). Yes, I''ve enabled depth testing after I re-init and yes, I did set the depth buffer value in the pixel format descriptor. I''ve gone as far as to actaully destroy the window, un-register the windows class, let go of the DC and RC, and also re-initialize those. I''ve pretty much killed everything and re-initialized all the right stuff! Any help would be greatly appreciated! Thanks, ~Rob

Share this post


Link to post
Share on other sites
Advertisement
Grrr...So, after poking through some of my co-coders code I found out that his dialog box code gracefully disables depth buffering and didn''t bother to reset the state Yucky for me as you can imagine! Oh well, another day, another lesson!
Thanks everyone and enjoy the holliday weekend!
~Rob

Share this post


Link to post
Share on other sites

This topic is 6207 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.

Guest
This topic is now closed to further replies.

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!