marciano wrote:
Yes of course, but I would need them as soon as possible since we wanted to finish the release this week. Next week I'm unfortunately busy with other things...
Just take these 3 snippets and replace the matching section/function...
Here is the modified code for utPlatform.h, line 25:
Code:
#ifndef PLATFORM_WIN
# if defined( WIN32 ) || defined( _WINDOWS )
# define PLATFORM_WIN
# endif
#endif
#ifndef PLATFORM_MAC
# if defined(__APPLE__) || defined(__APPLE_CC__)
# define PLATFORM_MAC
# endif
#endif
#ifndef PLATFORM_WIN
# define _stricmp strcasecmp
# define _mkdir( name ) mkdir( name, -1 )
#endif
In utOpenGL.h, line 33:
Code:
#ifdef PLATFORM_WIN
# define WIN32_LEAN_AND_MEAN 1
# include <windows.h>
# define GLAPI __declspec( dllimport )
# define GLAPIENTRY _stdcall
# define GLAPIENTRYP _stdcall *
#else
# include <stddef.h>
# define GLAPI
# define GLAPIENTRY
# define GLAPIENTRYP *
# ifdef PLATFORM_MAC
# include <Carbon/Carbon.h>
# else
extern "C" void (*glXGetProcAddressARB( const unsigned char *procName ))( void );
# endif
#endif
And for utOpenGL.cpp, line 357:
Code:
void *platGetProcAddress( const char *funcName )
{
#ifdef PLATFORM_WIN
return (void *)wglGetProcAddress( funcName );
#elif defined(PLATFORM_MAC)
CFBundleRef bundle;
CFURLRef bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, CFSTR("/System/Library/Frameworks/OpenGL.framework"), kCFURLPOSIXPathStyle, true);
CFStringRef functionName = CFStringCreateWithCString(kCFAllocatorDefault, funcName, kCFStringEncodingASCII);
void *function;
bundle = CFBundleCreate(kCFAllocatorDefault, bundleURL);
assert(bundle != NULL);
function = CFBundleGetFunctionPointerForName(bundle, functionName);
CFRelease(bundleURL);
CFRelease(functionName);
CFRelease(bundle);
return function;
#else
return (void *)glXGetProcAddressARB( (const GLubyte *)funcName );
#endif
}