Evas gl: Fix dlsym usage for glCompressedTexImage2d
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 3 Apr 2014 08:28:57 +0000 (17:28 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 4 Apr 2014 01:08:09 +0000 (10:08 +0900)
This symbol should be part of the loaded libraries, can be found
using dlsym, even if eglGetProcAddress() returns NULL.

Add etc1 flag in the debug output.

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

index 7bee00c..7a0b215 100644 (file)
@@ -216,6 +216,7 @@ gl_symbols(void)
    FINDSYM(secsym_eglGetImageAttribSEC, "eglGetImageAttribSEC", secsym_func_uint);
 #endif
    FINDSYM(glsym_glCompressedTexImage2d, "glCompressedTexImage2D", glsym_func_void);
+   FINDSYM2(glsym_glCompressedTexImage2d, "glCompressedTexImage2D", glsym_func_void);
 }
 
 static void shader_array_flush(Evas_Engine_GL_Context *gc);
@@ -730,6 +731,7 @@ evas_gl_common_context_new(void)
                    "non-power-2 tex %i\n"
                    "rect tex %i\n"
                    "bgra : %i\n"
+                   "etc1 : %i\n"
                    "max ansiotropic filtering: %3.3f\n"
                    "egl sec map image: %i\n"
                    "max vertex count: %i\n"
@@ -749,6 +751,7 @@ evas_gl_common_context_new(void)
                    (int)shared->info.tex_npo2,
                    (int)shared->info.tex_rect,
                    (int)shared->info.bgra,
+                   (int)shared->info.etc1,
                    (double)shared->info.anisotropic,
                    (int)shared->info.sec_image_map,
                    (int)shared->info.max_vertex_elements,