dynamic tex ref wrong. fix.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 4 Oct 2010 11:17:11 +0000 (11:17 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 4 Oct 2010 11:17:11 +0000 (11:17 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@53027 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/gl_common/evas_gl_texture.c

index 8bb357f..9574752 100644 (file)
@@ -765,8 +765,8 @@ evas_gl_common_texture_render_new(Evas_GL_Context *gc, unsigned int w, unsigned
    tex->y = 0;
    tex->w = w;
    tex->h = h;
-   tex->pt->references++;
-   return tex;
+   tex->pt->references++; 
+  return tex;
 }
 
 Evas_GL_Texture *
@@ -807,7 +807,7 @@ evas_gl_common_texture_dynamic_new(Evas_GL_Context *gc, Evas_GL_Image *im)
         free(tex);
         return NULL;
      }
-   
+   tex->pt->references++;
    return tex;
 }