From a191e9762a2e978c4555543d959893b5a6fa3675 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 3 Jul 2004 10:59:00 +0000 Subject: [PATCH] Frederic Bouvier: I have 3 issues that are fixed by this set of patches. 1. In extensions.cxx #else if !defined( WIN32 ) must be changed by #elif !defined( WIN32 ) because the text after #else seems to be ignored 2. banner is not available on windows, only cygwin 3. ANSI escape sequences are not interpreted on the windows console. We just have garbage that is hard to read. --- simgear/screen/extensions.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/simgear/screen/extensions.cxx b/simgear/screen/extensions.cxx index 21db7136..8f979790 100644 --- a/simgear/screen/extensions.cxx +++ b/simgear/screen/extensions.cxx @@ -60,8 +60,7 @@ bool SGIsOpenGLExtensionSupported(char *extName) { // The *extName string must follow the OpenGL extensions naming scheme // (ie: "GL_type_extension", like GL_EXT_convolution) - return SGSearchExtensionsString((char *)glGetString(GL_EXTENSIONS), -extName); + return SGSearchExtensionsString((char *)glGetString(GL_EXTENSIONS),extName); } #ifdef __APPLE__ @@ -97,7 +96,7 @@ void* macosxGetGLProcAddress(const char *func) { return function; } -#else if !defined( WIN32 ) +#elif !defined( WIN32 ) void *SGGetGLProcAddress(const char *func) { static void *libHandle = NULL; -- 2.39.5