From: ehofman Date: Sat, 3 Jul 2004 10:59:00 +0000 (+0000) Subject: Frederic Bouvier: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a191e9762a2e978c4555543d959893b5a6fa3675;p=simgear.git 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. --- 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;