mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-05 03:48:01 +00:00
Provide default implementation for LibraryHook::OptionsUpdated
This commit is contained in:
@@ -169,7 +169,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void OptionsUpdated(const char *libName) {}
|
||||
private:
|
||||
static D3D11Hook d3d11hooks;
|
||||
|
||||
|
||||
@@ -122,7 +122,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void OptionsUpdated(const char *libName) {}
|
||||
private:
|
||||
static D3D12Hook d3d12hooks;
|
||||
|
||||
|
||||
@@ -53,7 +53,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void OptionsUpdated(const char *libName) {}
|
||||
private:
|
||||
static D3D8Hook d3d8hooks;
|
||||
|
||||
|
||||
@@ -68,7 +68,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void OptionsUpdated(const char *libName) {}
|
||||
private:
|
||||
static D3D9Hook d3d9hooks;
|
||||
|
||||
|
||||
@@ -92,7 +92,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void OptionsUpdated(const char *libName) {}
|
||||
private:
|
||||
static DXGIHook dxgihooks;
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ public:
|
||||
OpenGLHook() {}
|
||||
~OpenGLHook() {}
|
||||
bool CreateHooks(const char *libName) { return false; }
|
||||
void OptionsUpdated(const char *libName) {}
|
||||
virtual GLWindowingData MakeContext(GLWindowingData share)
|
||||
{
|
||||
RDCUNIMPLEMENTED("MakeContext");
|
||||
|
||||
@@ -54,7 +54,6 @@ public:
|
||||
|
||||
bool CreateHooks(const char *libName);
|
||||
|
||||
void OptionsUpdated(const char *libName) {}
|
||||
void PopulateEGLFunctions()
|
||||
{
|
||||
if(!m_PopulatedHooks)
|
||||
|
||||
@@ -79,7 +79,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void OptionsUpdated(const char *libName) {}
|
||||
// see callsite in glXSwapBuffers for explanation of why this is necessary
|
||||
XID UnwrapGLXWindow(XID id)
|
||||
{
|
||||
|
||||
@@ -694,7 +694,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void OptionsUpdated(const char *libName) {}
|
||||
static OpenGLHook glhooks;
|
||||
|
||||
void PopulateGLFunctions()
|
||||
|
||||
@@ -83,7 +83,7 @@ private:
|
||||
struct LibraryHook
|
||||
{
|
||||
virtual bool CreateHooks(const char *libName) = 0;
|
||||
virtual void OptionsUpdated(const char *libName) = 0;
|
||||
virtual void OptionsUpdated(const char *libName) {}
|
||||
};
|
||||
|
||||
// this singleton allows you to compile in code that defines a hook for a given library
|
||||
|
||||
@@ -141,7 +141,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void OptionsUpdated(const char *libName) {}
|
||||
private:
|
||||
static SysHook syshooks;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user