freeglut warning will not go away

I'm creating a simple window using opengl and freeglut.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  #include <windows.h>
#include <GL/glut.h>

void display(void) {
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glutSwapBuffers();
}

int main(int argc, char **argv)
{
	glutInit(&argc, argv);
	glutInitDisplayMode(GLUT_RGBA);
	glutInitWindowSize(512, 512);
	glutCreateWindow("My Window");
	glutDisplayFunc(display);
	glutMainLoop();
	return 0;
}


The code compiles and runs fine, but I get this warning:
"fgPlatformInitialize: CreateDC failed, Screen size info may be incorrect
This is quite likely caused by a bad '-display' parameter"

I've been searching for hours and can't find an answer on how to fix this.
Is there no one who has experienced this or knows the answer?
Topic archived. No new replies allowed.