fix gles symbols

SVN revision: 43662
This commit is contained in:
Carsten Haitzler 2009-11-13 12:31:31 +00:00
parent 39913889b3
commit de44d8682a
1 changed files with 3 additions and 3 deletions

View File

@ -292,8 +292,8 @@ _pool_tex_render_new(Evas_GL_Context *gc, int w, int h, int intformat, int forma
_tex_2d(pt->intformat, w, h, pt->format, pt->dataformat);
glGenFramebuffers(1, &(pt->fb));
glBindFramebuffer(GL_FRAMEBUFFER, pt->fb);
glFramebufferTexture2DEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, pt->texture, 0);
glBindFramebufferEXT(GL_FRAMEBUFFER, 0);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, pt->texture, 0);
glBindFramebuffer(GL_FRAMEBUFFER, 0);
glBindTexture(GL_TEXTURE_2D, gc->shader.cur_tex);
return pt;
}
@ -393,7 +393,7 @@ pt_unref(Evas_GL_Texture_Pool *pt)
eina_list_remove(pt->gc->shared->tex.atlas[pt->slot][pt->fslot], pt);
}
glDeleteTextures(1, &(pt->texture));
if (pt->fb) glDeleteFramebuffersEXT(1, &(pt->fb));
if (pt->fb) glDeleteFramebuffers(1, &(pt->fb));
free(pt);
}