diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-11-01 19:53:42 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2011-07-07 18:00:34 +0100 |
commit | 9915b169237e3b2d817bd3d4455f3c01dd7dd2b5 (patch) | |
tree | 630821f5062b1a02c371746a20b52cb91e3f8a08 | |
parent | 8216316867f07819b8e8b377f2633fbf8876abf7 (diff) |
hw/xwin/glx: Don't spam log with wglwrap symbol resolution status at startup
... instead just log if an attempt is made to call a wrapper for
a function which didn't resolve
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | hw/xwin/glx/wgl_ext_api.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/hw/xwin/glx/wgl_ext_api.c b/hw/xwin/glx/wgl_ext_api.c index 1020916dc..78b6e2a02 100644 --- a/hw/xwin/glx/wgl_ext_api.c +++ b/hw/xwin/glx/wgl_ext_api.c @@ -43,17 +43,14 @@ static type type##proc = NULL; #define PRERESOLVE(type, symbol) \ - type##proc = (type)wglGetProcAddress(symbol); \ - if (type##proc == NULL) \ - ErrorF("wglwrap: Can't resolve \"%s\"\n", symbol); \ - else \ - ErrorF("wglwrap: Resolved \"%s\"\n", symbol); + type##proc = (type)wglGetProcAddress(symbol); #define RESOLVE_RET(type, symbol, retval) \ if (type##proc == NULL) { \ - __glXErrorCallBack(0); \ - return retval; \ - } + ErrorF("wglwrap: Can't resolve \"%s\"\n", symbol); \ + __glXErrorCallBack(0); \ + return retval; \ + } #define RESOLVE(procname, symbol) RESOLVE_RET(procname, symbol,) |