YaGL: GL_EXT_texture_format_BGRA8888 implemented
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Mon, 5 Aug 2013 08:51:36 +0000 (12:51 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Mon, 5 Aug 2013 08:51:36 +0000 (12:51 +0400)
hw/yagl_apis/gles/yagl_host_gles_calls.c
hw/yagl_apis/gles2/yagl_gles2_context.c

index bda6e89..21f9b7a 100644 (file)
@@ -82,6 +82,9 @@ static GLint yagl_get_stride(struct yagl_gles_context *ctx,
     case GL_RGBA:
         num_components = 4;
         break;
+    case GL_BGRA:
+        num_components = 4;
+        break;
     case GL_LUMINANCE:
         num_components = 1;
         break;
index f518dbf..15357e8 100644 (file)
@@ -235,7 +235,7 @@ static GLchar *yagl_gles2_context_get_extensions(struct yagl_gles_context *ctx)
     const GLchar *mandatory_extensions =
         "GL_OES_EGL_image GL_OES_depth24 GL_OES_depth32 "
         "GL_OES_texture_float GL_OES_texture_float_linear "
-        "GL_OES_depth_texture ";
+        "GL_EXT_texture_format_BGRA8888 GL_OES_depth_texture ";
     const GLchar *pack_depth_stencil = "GL_OES_packed_depth_stencil ";
     const GLchar *texture_npot = "GL_OES_texture_npot ";
     const GLchar *texture_rectangle = "GL_ARB_texture_rectangle ";