Make global GetRealFunctions more unique (don't want to collide)

This commit is contained in:
baldurk
2015-08-23 21:43:25 +02:00
parent 62f7362e92
commit ce00be0075
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -306,7 +306,7 @@ class OpenGLHook : LibraryHook
static OpenGLHook glhooks;
const GLHookSet &GetRealFunctions()
const GLHookSet &GetRealGLFunctions()
{
if(!m_PopulatedHooks)
m_PopulatedHooks = PopulateHooks();
@@ -854,7 +854,7 @@ bool OpenGLHook::PopulateHooks()
OpenGLHook OpenGLHook::glhooks;
const GLHookSet &GetRealFunctions() { return OpenGLHook::glhooks.GetRealFunctions(); }
const GLHookSet &GetRealGLFunctions() { return OpenGLHook::glhooks.GetRealGLFunctions(); }
void MakeContextCurrent(GLWindowingData data)
{
+2 -2
View File
@@ -253,7 +253,7 @@ class OpenGLHook : LibraryHook
static OpenGLHook glhooks;
const GLHookSet &GetRealFunctions()
const GLHookSet &GetRealGLFunctions()
{
if(!m_PopulatedHooks)
m_PopulatedHooks = PopulateHooks();
@@ -856,7 +856,7 @@ class OpenGLHook : LibraryHook
OpenGLHook OpenGLHook::glhooks;
const GLHookSet &GetRealFunctions() { return OpenGLHook::glhooks.GetRealFunctions(); }
const GLHookSet &GetRealGLFunctions() { return OpenGLHook::glhooks.GetRealGLFunctions(); }
void MakeContextCurrent(GLWindowingData data)
{
+1 -1
View File
@@ -2860,7 +2860,7 @@ ShaderDebugTrace GLReplay::DebugThread(uint32_t frameID, uint32_t eventID, uint3
return ShaderDebugTrace();
}
const GLHookSet &GetRealFunctions();
const GLHookSet &GetRealGLFunctions();
// defined in gl_replay_<platform>.cpp
ReplayCreateStatus GL_CreateReplayDevice(const char *logfile, IReplayDriver **driver);
+2 -2
View File
@@ -198,7 +198,7 @@ bool GLReplay::IsOutputWindowVisible(uint64_t id)
return true;
}
const GLHookSet &GetRealFunctions();
const GLHookSet &GetRealGLFunctions();
ReplayCreateStatus GL_CreateReplayDevice(const char *logfile, IReplayDriver **driver)
{
@@ -355,7 +355,7 @@ ReplayCreateStatus GL_CreateReplayDevice(const char *logfile, IReplayDriver **dr
}
}
WrappedOpenGL *gl = new WrappedOpenGL(logfile, GetRealFunctions());
WrappedOpenGL *gl = new WrappedOpenGL(logfile, GetRealGLFunctions());
gl->Initialise(initParams);
RDCLOG("Created device.");
+2 -2
View File
@@ -230,7 +230,7 @@ bool GLReplay::IsOutputWindowVisible(uint64_t id)
return (IsWindowVisible(m_OutputWindows[id].wnd) == TRUE);
}
const GLHookSet &GetRealFunctions();
const GLHookSet &GetRealGLFunctions();
ReplayCreateStatus GL_CreateReplayDevice(const char *logfile, IReplayDriver **driver)
{
@@ -462,7 +462,7 @@ ReplayCreateStatus GL_CreateReplayDevice(const char *logfile, IReplayDriver **dr
}
}
const GLHookSet &real = GetRealFunctions();
const GLHookSet &real = GetRealGLFunctions();
PFNGLGETSTRINGPROC *ptrs = (PFNGLGETSTRINGPROC *)&real;
size_t num = sizeof(real)/sizeof(PFNGLGETSTRINGPROC);