mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-12 16:55:49 +00:00
When an alias hook is fetched, return precisely the alias entry point
* This doesn't change much except for setting gl_CurChunk more accurately for alias functions.
This commit is contained in:
@@ -145,12 +145,12 @@ bool FullyImplementedFunction(const char *funcname)
|
||||
|
||||
void *HookedGetProcAddress(const char *func, void *realFunc)
|
||||
{
|
||||
#define CheckFunction(function, name) \
|
||||
if(!strcmp(func, STRINGIZE(name))) \
|
||||
{ \
|
||||
if(GL.function == NULL) \
|
||||
GL.function = (decltype(GL.function))realFunc; \
|
||||
return (void *)&CONCAT(function, _renderdoc_hooked); \
|
||||
#define CheckFunction(function, aliasName) \
|
||||
if(!strcmp(func, STRINGIZE(aliasName))) \
|
||||
{ \
|
||||
if(GL.function == NULL) \
|
||||
GL.function = (decltype(GL.function))realFunc; \
|
||||
return (void *)&CONCAT(aliasName, _renderdoc_hooked); \
|
||||
}
|
||||
|
||||
#define CheckUnsupported(function) \
|
||||
|
||||
Reference in New Issue
Block a user