Fixed Window sample

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1230 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-10-04 13:00:59 +00:00
parent 9483ecdfef
commit eee9eee226

View File

@ -56,6 +56,9 @@ int main()
glViewport(0, 0, event.Size.Width, event.Size.Height); glViewport(0, 0, event.Size.Width, event.Size.Height);
} }
// Activate the window
window.SetActive();
// Clear color and depth buffer // Clear color and depth buffer
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);