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.
This commit is contained in:
parent
80bae51c01
commit
5a159fcef4
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user