[GLExtensions] Hopefully fix OS X build.

This commit is contained in:
Ryan Houdek 2013-12-30 17:36:46 -06:00 committed by degasus
parent f4bd7bdef0
commit 2a8ee1a7ff
1 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#include "ConfigManager.h"
#include <wx/panel.h>
#import <mach-o/dyld.h>
#include "VertexShaderManager.h"
#include "../GLInterface.h"
@ -31,8 +32,8 @@
void* NSGLGetProcAddress (const char *name)
{
NSSymbol symbol;
char *symbolName;
symbolName = malloc (strlen (name) + 2); // 1
char* symbolName;
symbolName = (char*)malloc(strlen (name) + 2); // 1
strcpy(symbolName + 1, name); // 2
symbolName[0] = '_'; // 3
symbol = NULL;