fixed X11 sample

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1092 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2009-05-21 08:48:01 +00:00
parent 40fd859590
commit caf7f915d5

View File

@ -115,19 +115,6 @@ int main()
if (!Disp) if (!Disp)
return EXIT_FAILURE; return EXIT_FAILURE;
// Setup OpenGL states
// Set color and depth clear value
glClearDepth(1.f);
glClearColor(0.f, 0.5f, 0.5f, 0.f);
// Enable Z-buffer read and write
glEnable(GL_DEPTH_TEST);
glDepthMask(GL_TRUE);
// Setup a perspective projection
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(90.f, 1.f, 1.f, 500.f);
// Get the default screen // Get the default screen
int Screen = DefaultScreen(Disp); int Screen = DefaultScreen(Disp);