forked from enlightenment/efl
parent
39913889b3
commit
de44d8682a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue