Index: src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp |
diff --git a/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp b/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp |
index 09b732387720a946cf58e595bccb6cd8229ca3cc..86e2ebc4cde4f0c9d37e006a2fff87d8fa25a32b 100644 |
--- a/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp |
+++ b/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp |
@@ -229,8 +229,10 @@ GrGLuint EGLGLContext::eglImageToExternalTexture(GrEGLImage image) const { |
if (!this->gl()->hasExtension("GL_OES_EGL_image_external")) { |
return 0; |
} |
- GrGLEGLImageTargetTexture2DProc glEGLImageTargetTexture2D = |
- (GrGLEGLImageTargetTexture2DProc) eglGetProcAddress("glEGLImageTargetTexture2DOES"); |
+ typedef GrGLvoid (*EGLImageTargetTexture2DProc)(GrGLenum, GrGLeglImage); |
+ |
+ EGLImageTargetTexture2DProc glEGLImageTargetTexture2D = |
+ (EGLImageTargetTexture2DProc) eglGetProcAddress("glEGLImageTargetTexture2DOES"); |
if (!glEGLImageTargetTexture2D) { |
return 0; |
} |