Fix warnings in GrGLInterface mac setup, ignoring proc addr returns. There should be no functional change as these all return NULL on 10.6 and 10.7.

git-svn-id: http://skia.googlecode.com/svn/trunk@3929 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2012-05-14 20:08:39 +00:00
parent 9c639a406e
commit 382322ccff

View File

@ -25,8 +25,8 @@ void* GetProcAddress(const char* name) {
return NULL == symbol ? NULL : NSAddressOfSymbol(symbol);
}
#define GET_PROC(name) ((GrGL ## name ## Proc) GetProcAddress("_gl" #name))
#define GET_PROC_SUFFIX(name, suffix) ((GrGL ## name ## Proc) GetProcAddress("_gl" #name #suffix))
#define GET_PROC(name) (interface->f ## name = ((GrGL ## name ## Proc) GetProcAddress("_gl" #name)))
#define GET_PROC_SUFFIX(name, suffix) (interface->f ## name = ((GrGL ## name ## Proc) GetProcAddress("_gl" #name #suffix)))
const GrGLInterface* GrGLCreateNativeInterface() {
// The gl functions are not context-specific so we create one global