mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Rename our GLInterface class function 'GetProcAddress' in order to not have clashing function names due to Windows.
This commit is contained in:
parent
bea484e12f
commit
5d26bf6d9d
@ -35,7 +35,7 @@ void cInterfaceEGL::SwapInterval(int Interval)
|
|||||||
eglSwapInterval(GLWin.egl_dpy, Interval);
|
eglSwapInterval(GLWin.egl_dpy, Interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* cInterfaceEGL::GetProcAddress(std::string name)
|
void* cInterfaceEGL::GetFuncAddress(std::string name)
|
||||||
{
|
{
|
||||||
return (void*)eglGetProcAddress(name.c_str());
|
return (void*)eglGetProcAddress(name.c_str());
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ public:
|
|||||||
void Swap();
|
void Swap();
|
||||||
void SetMode(u32 mode) { s_opengl_mode = GLInterfaceMode::MODE_DETECT; }
|
void SetMode(u32 mode) { s_opengl_mode = GLInterfaceMode::MODE_DETECT; }
|
||||||
void UpdateFPSDisplay(const char *Text);
|
void UpdateFPSDisplay(const char *Text);
|
||||||
void* GetProcAddress(std::string name);
|
void* GetFuncAddress(std::string name);
|
||||||
bool Create(void *&window_handle);
|
bool Create(void *&window_handle);
|
||||||
bool MakeCurrent();
|
bool MakeCurrent();
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
|
@ -38,7 +38,7 @@ void cInterfaceGLX::SwapInterval(int Interval)
|
|||||||
else
|
else
|
||||||
ERROR_LOG(VIDEO, "No support for SwapInterval (framerate clamped to monitor refresh rate).");
|
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());
|
return (void*)glXGetProcAddress((const GLubyte*)name.c_str());
|
||||||
}
|
}
|
||||||
@ -123,7 +123,7 @@ bool cInterfaceGLX::Create(void *&window_handle)
|
|||||||
PanicAlert("Unable to create GLX context.");
|
PanicAlert("Unable to create GLX context.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
glXSwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC)GLInterface->GetProcAddress("glXSwapIntervalSGI");
|
glXSwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC)GLInterface->GetFuncAddress("glXSwapIntervalSGI");
|
||||||
|
|
||||||
GLWin.x = _tx;
|
GLWin.x = _tx;
|
||||||
GLWin.y = _ty;
|
GLWin.y = _ty;
|
||||||
|
@ -29,7 +29,7 @@ public:
|
|||||||
void SwapInterval(int Interval);
|
void SwapInterval(int Interval);
|
||||||
void Swap();
|
void Swap();
|
||||||
void UpdateFPSDisplay(const char *Text);
|
void UpdateFPSDisplay(const char *Text);
|
||||||
void* GetProcAddress(std::string name);
|
void* GetFuncAddress(std::string name);
|
||||||
bool Create(void *&window_handle);
|
bool Create(void *&window_handle);
|
||||||
bool MakeCurrent();
|
bool MakeCurrent();
|
||||||
bool ClearCurrent();
|
bool ClearCurrent();
|
||||||
|
@ -24,7 +24,7 @@ public:
|
|||||||
virtual void UpdateFPSDisplay(const char *Text) {}
|
virtual void UpdateFPSDisplay(const char *Text) {}
|
||||||
virtual void SetMode(u32 mode) { s_opengl_mode = GLInterfaceMode::MODE_OPENGL; }
|
virtual void SetMode(u32 mode) { s_opengl_mode = GLInterfaceMode::MODE_OPENGL; }
|
||||||
virtual u32 GetMode() { return s_opengl_mode; }
|
virtual u32 GetMode() { return s_opengl_mode; }
|
||||||
virtual void* GetProcAddress(std::string name) { return NULL; }
|
virtual void* GetFuncAddress(std::string name) { return NULL; }
|
||||||
virtual bool Create(void *&window_handle) { return true; }
|
virtual bool Create(void *&window_handle) { return true; }
|
||||||
virtual bool MakeCurrent() { return true; }
|
virtual bool MakeCurrent() { return true; }
|
||||||
virtual bool ClearCurrent() { return true; }
|
virtual bool ClearCurrent() { return true; }
|
||||||
|
@ -31,7 +31,7 @@ void cInterfaceWGL::Swap()
|
|||||||
SwapBuffers(hDC);
|
SwapBuffers(hDC);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* cInterfaceWGL::GetProcAddress(std::string name)
|
void* cInterfaceWGL::GetFuncAddress(std::string name)
|
||||||
{
|
{
|
||||||
void* func = (void*)wglGetProcAddress((LPCSTR)name.c_str());
|
void* func = (void*)wglGetProcAddress((LPCSTR)name.c_str());
|
||||||
if (func == NULL)
|
if (func == NULL)
|
||||||
@ -83,7 +83,7 @@ bool cInterfaceWGL::Create(void *&window_handle)
|
|||||||
Host_SysMessage("failed to create window");
|
Host_SysMessage("failed to create window");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)GLInterface->GetProcAddress("wglSwapIntervalEXT");
|
wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)GLInterface->GetFuncAddress("wglSwapIntervalEXT");
|
||||||
|
|
||||||
// Show the window
|
// Show the window
|
||||||
EmuWindow::Show();
|
EmuWindow::Show();
|
||||||
|
@ -13,7 +13,7 @@ public:
|
|||||||
void SwapInterval(int Interval);
|
void SwapInterval(int Interval);
|
||||||
void Swap();
|
void Swap();
|
||||||
void UpdateFPSDisplay(const char *Text);
|
void UpdateFPSDisplay(const char *Text);
|
||||||
void* GetProcAddress(std::string name);
|
void* GetFuncAddress(std::string name);
|
||||||
bool Create(void *&window_handle);
|
bool Create(void *&window_handle);
|
||||||
bool MakeCurrent();
|
bool MakeCurrent();
|
||||||
bool ClearCurrent();
|
bool ClearCurrent();
|
||||||
|
@ -942,7 +942,7 @@ namespace GLExtensions
|
|||||||
|
|
||||||
void* GetFuncAddress(std::string name, void **func)
|
void* GetFuncAddress(std::string name, void **func)
|
||||||
{
|
{
|
||||||
*func = GLInterface->GetProcAddress(name);
|
*func = GLInterface->GetFuncAddress(name);
|
||||||
if (*func == NULL)
|
if (*func == NULL)
|
||||||
{
|
{
|
||||||
#if defined(__linux__) || defined(__APPLE__)
|
#if defined(__linux__) || defined(__APPLE__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user