Jump to content
  • Advertisement

Archived

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

HappySnapper

The KillGLWindow function

This topic is 6388 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''m using visual c++ 5 and when I compile NeHe''s code or my code which is similar to the lesson 1 source then the following happens. The program runs fine, it exits fine without any message box errors but then the output box in visual c++ 5 is filled with errors. Here is a sample of the dump. WGL Message:__wglDDrawInitDrawable WGL Message:WGL: DDrawRestoreSurface: IsLost: DDERROR = DDERR_SURFACELOST WGL Message:WGL: DDrawRestoreSurface: Restore: DDERROR = DDERR_WRONGMODE WGL Message:__wglFreeBuffers WGL Message:WGL: DDrawRestoreSurface: IsLost: DDERROR = DDERR_SURFACELOST WGL Message:WGL: DDrawRestoreSurface: Restore: DDERROR = DDERR_WRONGMODE The thread 0xFFE5A179 has exited with code 27 (0x1B). The program ''E:\Nobby\NeHe\LESSON17\Debug\lesson17.exe'' has exited with code 27 (0x1B). I assume that this is a crash of some sort because no code is executed after the KillGLWindow function. Any help would be apreciated. Andrew McNab

Share this post


Link to post
Share on other sites
Advertisement
Those are Direct Draw errors. They shouldn''t come up if you are using OpenGL. Are you running a DirectX program in the background that takes exclusive control over the video?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Many drivers is using DirectDraw for creating surfaces. If you want to know more about it is the card manufacturer the one to ask.

You can also test a hacked NeHe framework:
http://sites.netscape.net/ptrpck/switch.zip

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.

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!