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>
This commit is contained in:
		
							parent
							
								
									8216316867
								
							
						
					
					
						commit
						9915b16923
					
				| 
						 | 
				
			
			@ -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,)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue