From 392cfb493a2da80aa3185162651a184b5f2936b5 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Sat, 5 Feb 2011 12:42:39 +0000 Subject: [PATCH] cogl-gles: Check for the GL_ANGLE_framebuffer_blit extension This extension is the GLES equivalent of the GL_EXT_framebuffer_blit extension except that it has some extra restrictions. We need to check for some extension that provides glBlitFramebuffer so that we can unconditionally use ctx->drv.pf_glBlitFramebuffer in both GL and GLES code. Even with the restrictions, the extension provides enough features for what Cogl needs. --- cogl/driver/gles/cogl-feature-functions-gles.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cogl/driver/gles/cogl-feature-functions-gles.h b/cogl/driver/gles/cogl-feature-functions-gles.h index 408076ee8..cd3540ecd 100644 --- a/cogl/driver/gles/cogl-feature-functions-gles.h +++ b/cogl/driver/gles/cogl-feature-functions-gles.h @@ -74,6 +74,24 @@ COGL_FEATURE_FUNCTION (void, glGetFramebufferAttachmentParameteriv, GLint *params)) COGL_FEATURE_END () +COGL_FEATURE_BEGIN (offscreen_blit, 255, 255, + "ANGLE\0", + "framebuffer_blit\0", + COGL_FEATURE_OFFSCREEN_BLIT, + 0) +COGL_FEATURE_FUNCTION (void, glBlitFramebuffer, + (GLint srcX0, + GLint srcY0, + GLint srcX1, + GLint srcY1, + GLint dstX0, + GLint dstY0, + GLint dstX1, + GLint dstY1, + GLbitfield mask, + GLenum filter)) +COGL_FEATURE_END () + COGL_FEATURE_BEGIN (element_index_uint, 255, 255, "OES\0", "element_index_uint\0",