Fix Mac build

git-svn-id: http://skia.googlecode.com/svn/trunk@2967 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2012-01-05 16:25:46 +00:00
parent 280e99f1a6
commit 8192095eea

View File

@ -124,11 +124,11 @@ const GrGLInterface* GrGLCreateNativeInterface() {
#elif GL_EXT_texture_storage #elif GL_EXT_texture_storage
interface->fTexStorage2D = glTexStorage2DEXT; interface->fTexStorage2D = glTexStorage2DEXT;
#else #else
if (glVer >= GR_GL_VER(4,2) || if (ver >= GR_GL_VER(4,2) ||
GrGLHasExtensionFromString("GL_ARB_texture_storage", extString)) { GrGLHasExtensionFromString("GL_ARB_texture_storage", extStr)) {
GR_GL_GET_PROC(TexStorage2D); GET_PROC(TexStorage2D);
} else if (GrGLHasExtensionFromString("GL_EXT_texture_storage", extString)) { } else if (GrGLHasExtensionFromString("GL_EXT_texture_storage", extStr)) {
GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT); GET_PROC_SUFFIX(TexStorage2D, EXT);
} }
#endif #endif
interface->fTexSubImage2D = glTexSubImage2D; interface->fTexSubImage2D = glTexSubImage2D;