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 bda6e892432f19eaf34ef6b0e6a8566997f5c21f..21f9b7ae42688b41c5f0947216fbab043814b4da 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 f518dbf2535e43dac037063fdc7af2225576b873..15357e801638f7bae2edde9ccbebe952d2f01834 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 ";