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:
parent
9483ecdfef
commit
eee9eee226
@ -56,6 +56,9 @@ int main()
|
||||
glViewport(0, 0, event.Size.Width, event.Size.Height);
|
||||
}
|
||||
|
||||
// Activate the window
|
||||
window.SetActive();
|
||||
|
||||
// Clear color and depth buffer
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user