found booboo on non-bgra extended gl-es.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 27 Feb 2010 10:31:17 +0000 (10:31 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 27 Feb 2010 10:31:17 +0000 (10:31 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@46576 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/gl_common/evas_gl_context.c
src/modules/engines/gl_common/evas_gl_texture.c

index 1dd57a2..beb2034 100644 (file)
@@ -334,9 +334,9 @@ evas_gl_common_context_new(void)
                            &(shared->info.anisotropic));
 #endif
 #ifdef GL_BGRA
-             if ((strstr((char*) ext, "GL_EXT_bgra")) ||
-                 (strstr((char*) ext, "GL_EXT_texture_format_BGRA8888")))
-               shared->info.bgra = 1;
+//             if ((strstr((char*) ext, "GL_EXT_bgra")) ||
+//                 (strstr((char*) ext, "GL_EXT_texture_format_BGRA8888")))
+//               shared->info.bgra = 1;
 #endif             
           }
         glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS,
index 42ff4a0..c26ab24 100644 (file)
@@ -244,9 +244,15 @@ evas_gl_common_texture_new(Evas_GL_Context *gc, RGBA_Image *im)
                                  im->cache_entry.h + 1, bgr_ifmt, bgr_fmt,
                                  &u, &v, &l_after, 1024);
         else
+#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
+          tex->pt = _pool_tex_find(gc, im->cache_entry.w + 3, 
+                                 im->cache_entry.h + 1, rgba_ifmt, rgba_fmt,
+                                 &u, &v, &l_after, 1024);
+#else
           tex->pt = _pool_tex_find(gc, im->cache_entry.w + 3, 
                                  im->cache_entry.h + 1, rgb_ifmt, rgb_fmt,
                                  &u, &v, &l_after, 1024);
+#endif
      }
    if (!tex->pt)
      {