Jump to content
  • Advertisement
Sign in to follow this  

OpenGL SetPixelFormat with ATI this time ?!?!?

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

for init section i do this : /////////// PIXELFORMATDESCRIPTOR pfd; ZeroMemory( &pfd, sizeof( pfd ) ); pfd.nSize = sizeof( pfd ); pfd.nVersion = 1; pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; pfd.iPixelType = PFD_TYPE_RGBA; pfd.cColorBits = 24; pfd.cDepthBits = 16; pfd.iLayerType = PFD_MAIN_PLANE; //////////// then i choose the Pixel Format... //////////// nPixelFormat=ChoosePixelFormat(g_hdc,&pfd)); /////////////// and then... when i use the setpixelformat ////////////////// SetPixelFormat(g_hdc, nPixelFormat, &pfd) ///////////////// suddenly it returns to windows ?!?!? could you help me about this and the important thing it does this on ati cards (actually i have ge force and it works but for example on an ati card like radeon 9550 it returns to windows) thank you ...

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.

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!