Skip to main content
GameDev.net gamedev.net
🔒 Locked

Pixel Format Problems

Started by AndyEsser Jun 27, 2007 at 9:24 AM 0 replies 550+ views
Original Post
AndyEsser
AndyEsser
I recently rewrote large amounts of the code of my project, and although it runs fine on my computer, it doesn't seem to want to run on other computers it's been tried on. I've managed to narrow it down to this line: pixelFormat = ChoosePixelFormat(window.hDC, pfd) This code is identical to how I had it previously before I rewrote the code. Obviously something is going wrong when it's trying to choose the Pixel Format. Any help would be much appreciated. P.S. I program in VB
macmoy
macmoy
try this:

PixelFormat = ChoosePixelFormat(window.hDC,&pfd);

make sure that BEFORE that line u must fill up the struct of pfd..

ex.

pfd.nVersion=1;
pfd.nSize=sizeof(pfd);
pfd.dwFlags=GL_DRAW_TO_WINDOW|GL_SUPPORT_OPENGL|GL_DOUBLEBUFFER;
ect..
ect...
ect....

hope this'll help u..
:)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.