Fix Mac build
git-svn-id: http://skia.googlecode.com/svn/trunk@2967 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
280e99f1a6
commit
8192095eea
@ -124,11 +124,11 @@ const GrGLInterface* GrGLCreateNativeInterface() {
|
||||
#elif GL_EXT_texture_storage
|
||||
interface->fTexStorage2D = glTexStorage2DEXT;
|
||||
#else
|
||||
if (glVer >= GR_GL_VER(4,2) ||
|
||||
GrGLHasExtensionFromString("GL_ARB_texture_storage", extString)) {
|
||||
GR_GL_GET_PROC(TexStorage2D);
|
||||
} else if (GrGLHasExtensionFromString("GL_EXT_texture_storage", extString)) {
|
||||
GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT);
|
||||
if (ver >= GR_GL_VER(4,2) ||
|
||||
GrGLHasExtensionFromString("GL_ARB_texture_storage", extStr)) {
|
||||
GET_PROC(TexStorage2D);
|
||||
} else if (GrGLHasExtensionFromString("GL_EXT_texture_storage", extStr)) {
|
||||
GET_PROC_SUFFIX(TexStorage2D, EXT);
|
||||
}
|
||||
#endif
|
||||
interface->fTexSubImage2D = glTexSubImage2D;
|
||||
|
Loading…
Reference in New Issue
Block a user