Index: src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp |
diff --git a/src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp b/src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp |
index 72311c417ec700790db66fe07683eb287ac92051..03eaa3292a149b67e14d0535c6c9fa3923df4d5e 100644 |
--- a/src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp |
+++ b/src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp |
@@ -147,56 +147,35 @@ static const GrGLInterface* create_es_interface(GrGLVersion version, |
interface->fDeleteRenderbuffers = glDeleteRenderbuffers; |
interface->fFramebufferRenderbuffer = glFramebufferRenderbuffer; |
interface->fFramebufferTexture2D = glFramebufferTexture2D; |
-#if GR_GL_IGNORE_ES3_MSAA |
+ |
+ if (version >= GR_GL_VER(3,0)) { |
bsalomon
2014/01/16 19:49:58
The change here was to delete the #if GR_GL_IGNORE
|
+#if GL_ES_VERSION_3_0 |
+ interface->fRenderbufferStorageMultisample = glRenderbufferStorageMultisample; |
+ interface->fBlitFramebuffer = glBlitFramebuffer; |
+#else |
+ interface->fRenderbufferStorageMultisample = (GrGLRenderbufferStorageMultisampleProc) eglGetProcAddress("glRenderbufferStorageMultisample"); |
+ interface->fBlitFramebuffer = (GrGLBlitFramebufferProc) eglGetProcAddress("glBlitFramebuffer"); |
+#endif |
+ } |
if (extensions.has("GL_EXT_multisampled_render_to_texture")) { |
#if GL_EXT_multisampled_render_to_texture |
interface->fFramebufferTexture2DMultisample = glFramebufferTexture2DMultisampleEXT; |
- interface->fRenderbufferStorageMultisample = glRenderbufferStorageMultisampleEXT; |
+ interface->fRenderbufferStorageMultisampleES2EXT = glRenderbufferStorageMultisampleEXT; |
#else |
interface->fFramebufferTexture2DMultisample = (GrGLFramebufferTexture2DMultisampleProc) eglGetProcAddress("glFramebufferTexture2DMultisampleEXT"); |
- interface->fRenderbufferStorageMultisample = (GrGLRenderbufferStorageMultisampleProc) eglGetProcAddress("glRenderbufferStorageMultisampleEXT"); |
+ interface->fRenderbufferStorageMultisampleES2EXT = (GrGLRenderbufferStorageMultisampleProc) eglGetProcAddress("glRenderbufferStorageMultisampleEXT"); |
#endif |
} else if (extensions.has("GL_IMG_multisampled_render_to_texture")) { |
#if GL_IMG_multisampled_render_to_texture |
interface->fFramebufferTexture2DMultisample = glFramebufferTexture2DMultisampleIMG; |
- interface->fRenderbufferStorageMultisample = glRenderbufferStorageMultisampleIMG; |
+ interface->fRenderbufferStorageMultisampleES2EXT = glRenderbufferStorageMultisampleIMG; |
#else |
interface->fFramebufferTexture2DMultisample = (GrGLFramebufferTexture2DMultisampleProc) eglGetProcAddress("glFramebufferTexture2DMultisampleIMG"); |
- interface->fRenderbufferStorageMultisample = (GrGLRenderbufferStorageMultisampleProc) eglGetProcAddress("glRenderbufferStorageMultisampleIMG"); |
+ interface->fRenderbufferStorageMultisampleES2EXT = (GrGLRenderbufferStorageMultisampleProc) eglGetProcAddress("glRenderbufferStorageMultisampleIMG"); |
#endif |
} |
-#else // GR_GL_IGNORE_ES3_MSAA |
- |
- if (version >= GR_GL_VER(3,0)) { |
-#if GL_ES_VERSION_3_0 |
- interface->fRenderbufferStorageMultisample = glRenderbufferStorageMultisample; |
- interface->fBlitFramebuffer = glBlitFramebuffer; |
-#else |
- interface->fRenderbufferStorageMultisample = (GrGLRenderbufferStorageMultisampleProc) eglGetProcAddress("glRenderbufferStorageMultisample"); |
- interface->fBlitFramebuffer = (GrGLBlitFramebufferProc) eglGetProcAddress("glBlitFramebuffer"); |
-#endif |
- } |
- if (extensions.has("GL_EXT_multisampled_render_to_texture")) { |
-#if GL_EXT_multisampled_render_to_texture |
- interface->fFramebufferTexture2DMultisample = glFramebufferTexture2DMultisampleEXT; |
- interface->fRenderbufferStorageMultisampleES2EXT = glRenderbufferStorageMultisampleEXT; |
-#else |
- interface->fFramebufferTexture2DMultisample = (GrGLFramebufferTexture2DMultisampleProc) eglGetProcAddress("glFramebufferTexture2DMultisampleEXT"); |
- interface->fRenderbufferStorageMultisampleES2EXT = (GrGLRenderbufferStorageMultisampleProc) eglGetProcAddress("glRenderbufferStorageMultisampleEXT"); |
-#endif |
- } else if (extensions.has("GL_IMG_multisampled_render_to_texture")) { |
-#if GL_IMG_multisampled_render_to_texture |
- interface->fFramebufferTexture2DMultisample = glFramebufferTexture2DMultisampleIMG; |
- interface->fRenderbufferStorageMultisampleES2EXT = glRenderbufferStorageMultisampleIMG; |
-#else |
- interface->fFramebufferTexture2DMultisample = (GrGLFramebufferTexture2DMultisampleProc) eglGetProcAddress("glFramebufferTexture2DMultisampleIMG"); |
- interface->fRenderbufferStorageMultisampleES2EXT = (GrGLRenderbufferStorageMultisampleProc) eglGetProcAddress("glRenderbufferStorageMultisampleIMG"); |
-#endif |
- } |
- |
-#endif // GR_GL_IGNORE_ES3_MSAA |
interface->fGenFramebuffers = glGenFramebuffers; |
interface->fGenRenderbuffers = glGenRenderbuffers; |
interface->fGetFramebufferAttachmentParameteriv = glGetFramebufferAttachmentParameteriv; |