summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-11-24 18:44:46 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-11-24 18:52:14 +0900
commit2e83b076dbf3ca4f54b7eef0ab40ce0a90d195c5 (patch)
tree82d8f6b3709a35de1bae610425d47848b28d66be
parent09934be78827674588678cdab2ce123e6fa5da5c (diff)
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.
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_context.c6
1 files changed, 5 insertions, 1 deletions
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 d1bedec824..7d774d9d2e 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)
724 724
725 // Note: If we support ETC2 we'll try to always use ETC2 even when the 725 // Note: If we support ETC2 we'll try to always use ETC2 even when the
726 // image has colorspace ETC1 (backwards compatibility). 726 // image has colorspace ETC1 (backwards compatibility).
727 shared->info.etc1_subimage = shared->info.etc2; 727
728 if (ext && strstr((char *)ext, "GL_EXT_compressed_ETC1_RGB8_sub_texture"))
729 shared->info.etc1_subimage = 1;
730 else
731 shared->info.etc1_subimage = shared->info.etc2;
728 732
729 // FIXME: My NVIDIA driver advertises ETC2 texture formats 733 // FIXME: My NVIDIA driver advertises ETC2 texture formats
730 // but does not support them. Driver bug? Logic bug? 734 // but does not support them. Driver bug? Logic bug?