mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Make global GetRealFunctions more unique (don't want to collide)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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.");
|
||||
|
||||
@@ -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 *)ℜ
|
||||
size_t num = sizeof(real)/sizeof(PFNGLGETSTRINGPROC);
|
||||
|
||||
Reference in New Issue
Block a user