mirror of
https://github.com/SFML/SFML.git
synced 2025-01-19 07:45:13 +08:00
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:
parent
40fd859590
commit
caf7f915d5
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user