diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2017-01-23 18:23:42 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2017-01-23 18:23:42 +0200 |
commit | 238b64b541d9c37a59a291980e07f0b5d9d9826b (patch) | |
tree | 3a6dc532fce3fd5a40b6015c16b4fa711147a307 /hooks.h | |
parent | 1d71fee4c0ba9be181fc48a447b7287754dc9bd1 (diff) |
Add wider OpenGL coverage, more cleanups, etc..
Testing with some GLES 2.0 programs that I have made so I can profile
this thing.
Diffstat (limited to 'hooks.h')
-rw-r--r-- | hooks.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -134,8 +134,8 @@ hook_function(void **ptr, const char *name, const bool versioned) return; if (versioned) { - const char *versions[] = { "GLIBC_2.0", "GLIBC_2.2.5", NULL }; - for (size_t i = 0; !*ptr && versions[i]; ++i) + const char *versions[] = { "GLIBC_2.0", "GLIBC_2.2.5" }; + for (size_t i = 0; !*ptr && i < ARRAY_SIZE(versions); ++i) *ptr = dlvsym(RTLD_NEXT, name, versions[i]); } else { HOOK_DLSYM(dlsym); @@ -158,5 +158,3 @@ dlsym(void *handle, const char *symbol) return store_real_symbol_and_return_fake_symbol(symbol, _dlsym(handle, symbol)); } - -#undef HOOK_DLSYM |