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:
baldurk
2019-03-26 17:20:32 +00:00
parent 8a5b95319b
commit 8762bc4186
+6 -6
View File
@@ -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) \