From 6b77a7776508358ff6d991b071a1434dc2fcb8b4 Mon Sep 17 00:00:00 2001 From: Stanislav Vorobiov Date: Mon, 2 Jun 2014 09:56:46 +0400 Subject: YaGL: Report GL_OES_surfaceless_context support EGL_KHR_surfaceless_context can be used only with contexts that support GL_OES_surfaceless_context. YaGL supports GL_OES_surfaceless_context for any kind of context, so report this always Change-Id: I6d515b8b6eccff8a030508f1c2f1fc12db58d520 Signed-off-by: Stanislav Vorobiov --- GLESv2/yagl_gles2_context.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'GLESv2') diff --git a/GLESv2/yagl_gles2_context.c b/GLESv2/yagl_gles2_context.c index 87f44d3..3a469cc 100644 --- a/GLESv2/yagl_gles2_context.c +++ b/GLESv2/yagl_gles2_context.c @@ -53,6 +53,7 @@ static const GLchar *read_buffer_ext = "GL_NV_read_buffer"; static const GLchar *compressed_etc1_rgb8_texture_ext = "GL_OES_compressed_ETC1_RGB8_texture"; static const GLchar *pack_subimage_ext = "GL_NV_pack_subimage"; static const GLchar *unpack_subimage_ext = "GL_EXT_unpack_subimage"; +static const GLchar *surfaceless_context_ext = "GL_OES_surfaceless_context"; static const GLchar *egl_sync_ext = "GL_OES_EGL_sync"; static const GLchar *packed_depth_stencil_ext = "GL_OES_packed_depth_stencil"; static const GLchar *texture_npot_ext = "GL_OES_texture_npot"; @@ -329,6 +330,7 @@ const GLchar **yagl_gles2_context_get_extensions(struct yagl_gles2_context *ctx, extensions[i++] = compressed_etc1_rgb8_texture_ext; extensions[i++] = pack_subimage_ext; extensions[i++] = unpack_subimage_ext; + extensions[i++] = surfaceless_context_ext; if (yagl_egl_fence_supported()) { extensions[i++] = egl_sync_ext; -- cgit v1.2.3