Advertisement

OGL Game Programming Book Query

Started by July 29, 2003 03:43 PM
3 comments, last by zoidy 21 years, 6 months ago
I have been working through the book. I tried to compile and play about with some of the code. It runs fine in a window, however if I try to run it fullscreen, it resizes the desktop and thats it. If you press escape it will still close the program and restore the desktop as its supposed to so the program is obviously running. The nehe basecode runs fine, windowed and fullscreen. The code I am trying seems to run ok on another computer, although a little slower than expected. Does anyone know why this would be? Any suggestions? thanks... zoidy
Hmm, it sounds like the rendering context is being created but its not being refreshed thats why its displaying the desktop. It maybe something to do with SwapBuffers().

Hyperdev

"To err is human, to really mess up requires a computer"
"To err is human, to really mess up requires a computer"
Advertisement
Thanks for your reply, Im looking into that now
zoidy
Did you try Alt-Tab?
______________________________________________There are only 10 types of people in the world: Those who understand binary, and those who don't.
Actually, I did try alt and tab. I spent some time looking into the SwapBuffers as suggested. After ages, I looked through the code again and on a whim changed the colour depth from 32 to 16 and it worked fine. Whoops. Thank you both for your help though...
zoidy

This topic is closed to new replies.

Advertisement