hmm gles doesnt have internal format fetching.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 21 Oct 2011 12:03:41 +0000 (12:03 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 21 Oct 2011 12:03:41 +0000 (12:03 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@64253 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/gl_common/evas_gl_texture.c

index e995b3a..a25faa1 100644 (file)
@@ -112,6 +112,8 @@ _tex_2d(int intfmt, int w, int h, int fmt, int type)
    int intfmtret = -1;
    glTexImage2D(GL_TEXTURE_2D, 0, intfmt, w, h, 0, fmt, type, NULL);
    GLERR(__FUNCTION__, __FILE__, __LINE__, "");
+#ifdef GL_TEXTURE_INTERNAL_FORMAT
+// this is not in opengles!!! hrrrm   
    glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, 
                             GL_TEXTURE_INTERNAL_FORMAT, &intfmtret);
    if (intfmtret != intfmt)
@@ -119,6 +121,7 @@ _tex_2d(int intfmt, int w, int h, int fmt, int type)
         ERR("Fail tex alloc %ix%i", w, h);
 //        XXX send async err to evas
      }
+#endif   
 }
 
 static void