From eee9eee226682ad062175252db456faf98babf94 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Sun, 4 Oct 2009 13:00:59 +0000 Subject: [PATCH] Fixed Window sample git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1230 4e206d99-4929-0410-ac5d-dfc041789085 --- samples/window/Window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/window/Window.cpp b/samples/window/Window.cpp index 70d4f9d7..4d0db932 100644 --- a/samples/window/Window.cpp +++ b/samples/window/Window.cpp @@ -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);