From 39a966d136928586ced1a9c9f134fe83fb393c7b Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 14 Sep 2010 02:22:52 +0200 Subject: [PATCH] Oh, right, this is C. --- examples/boing.c | 3 ++- tests/fsaa.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/boing.c b/examples/boing.c index 94f1a5d7..f6a22fa2 100644 --- a/examples/boing.c +++ b/examples/boing.c @@ -566,6 +566,7 @@ void DrawGrid( void ) int main( void ) { int running; + GLFWwindow window; /* Init GLFW */ if( !glfwInit() ) @@ -576,7 +577,7 @@ int main( void ) glfwOpenWindowHint(GLFW_DEPTH_BITS, 16); - GLFWwindow window = glfwOpenWindow( 400, 400, GLFW_WINDOWED ); + window = glfwOpenWindow( 400, 400, GLFW_WINDOWED ); if (!window) { fprintf( stderr, "Failed to open GLFW window\n" ); diff --git a/tests/fsaa.c b/tests/fsaa.c index 022af638..c80b42f1 100644 --- a/tests/fsaa.c +++ b/tests/fsaa.c @@ -45,6 +45,7 @@ static void window_size_callback(GLFWwindow window, int width, int height) int main(void) { + int samples; GLFWwindow window; if (!glfwInit()) @@ -68,7 +69,7 @@ int main(void) glfwSetWindowSizeCallback(window, window_size_callback); glfwSwapInterval(1); - int samples = glfwGetWindowParam(window, GLFW_FSAA_SAMPLES); + samples = glfwGetWindowParam(window, GLFW_FSAA_SAMPLES); if (samples) printf("Context reports FSAA is supported with %i samples\n", samples); else