GLUT and Vista = Flickering [SOLVED]

Started by
2 comments, last by tuphdc 16 years, 7 months ago
I cannot get a GLUT game working in fullscreen mode. The entire screen flickers unless I disable Aero. I thought there weren't going to be any problems with Vista and OpenGL? If I can't fix this I'll have to use DirectX instead. I'm hoping somebody can help me because I prefer to use OpenGL. Here is the code I am using to set up my game:

int main(int argc, char* argv[])
{
	glutInit(&argc, argv);

	glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH);

	glutCreateWindow("GLUT_GAME");

	glutFullScreen();

	glutReshapeFunc(ChangeSize);

	glutSpecialFunc(SpecialKeys);

	glutDisplayFunc(RenderScene);

	glutIdleFunc(Idle);

	SetupRC();

	glutMainLoop();

	return 0;
}




Yes, I have the latest Cat drivers for my ATI card. [Edited by - tuphdc on September 15, 2007 10:11:48 AM]
Advertisement
Try the following command.

wglSwapIntervalEXT(1);
Thanks, I tried wglSwapIntervalEXT but it doesn't seem to help any.

It turns out that when the DPI is changed in Vista, it causes flickering in a fullscreen GLUT application.

I had changed my DPI to 96 from the 120 and everything seems ok now.

[Edited by - tuphdc on September 15, 2007 2:13:38 PM]

This topic is closed to new replies.

Advertisement