jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2e83b076dbf3ca4f54b7eef0ab40ce0a90d195c5

commit 2e83b076dbf3ca4f54b7eef0ab40ce0a90d195c5
Author: Jean-Philippe Andre <[email protected]>
Date:   Mon Nov 24 18:44:46 2014 +0900

    Evas GL common: Scan extension string for ETC1 subimage
    
    There is an official name for it:
    GL_EXT_compressed_ETC1_RGB8_sub_texture
    
    Thanks Mythri for pushing that specification.
---
 src/modules/evas/engines/gl_common/evas_gl_context.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c 
b/src/modules/evas/engines/gl_common/evas_gl_context.c
index d1bedec..7d774d9 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -724,7 +724,11 @@ evas_gl_common_context_new(void)
 
                        // Note: If we support ETC2 we'll try to always use 
ETC2 even when the
                        // image has colorspace ETC1 (backwards compatibility).
-                       shared->info.etc1_subimage = shared->info.etc2;
+
+                       if (ext && strstr((char *)ext, 
"GL_EXT_compressed_ETC1_RGB8_sub_texture"))
+                         shared->info.etc1_subimage = 1;
+                       else
+                         shared->info.etc1_subimage = shared->info.etc2;
 
                        // FIXME: My NVIDIA driver advertises ETC2 texture 
formats
                        // but does not support them. Driver bug? Logic bug?

-- 


Reply via email to