Rename our GLInterface class function 'GetProcAddress' in order to not have clashing function names due to Windows.

This commit is contained in:
Ryan Houdek
2014-01-18 14:18:32 +00:00
parent bea484e12f
commit 5d26bf6d9d
8 changed files with 10 additions and 10 deletions

View File

@ -38,7 +38,7 @@ void cInterfaceGLX::SwapInterval(int Interval)
else
ERROR_LOG(VIDEO, "No support for SwapInterval (framerate clamped to monitor refresh rate).");
}
void* cInterfaceGLX::GetProcAddress(std::string name)
void* cInterfaceGLX::GetFuncAddress(std::string name)
{
return (void*)glXGetProcAddress((const GLubyte*)name.c_str());
}
@ -123,7 +123,7 @@ bool cInterfaceGLX::Create(void *&window_handle)
PanicAlert("Unable to create GLX context.");
return false;
}
glXSwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC)GLInterface->GetProcAddress("glXSwapIntervalSGI");
glXSwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC)GLInterface->GetFuncAddress("glXSwapIntervalSGI");
GLWin.x = _tx;
GLWin.y = _ty;