Commit 97e002ca authored by Yann Diorcet's avatar Yann Diorcet
Browse files

Fix iosdisplay buffers delete

parent 17fa1d38
......@@ -118,7 +118,6 @@
glGenFramebuffers(1, &defaultFrameBuffer);
glGenRenderbuffers(1, &colorRenderBuffer);
glBindFramebuffer(GL_FRAMEBUFFER, defaultFrameBuffer);
glBindRenderbuffer(GL_RENDERBUFFER, colorRenderBuffer);
......@@ -223,8 +222,8 @@
display_helper = NULL;
glDeleteFramebuffers(GL_FRAMEBUFFER, &defaultFrameBuffer);
glDeleteRenderbuffers(GL_RENDERBUFFER, &colorRenderBuffer);
glDeleteFramebuffers(1, &defaultFrameBuffer);
glDeleteRenderbuffers(1, &colorRenderBuffer);
[EAGLContext setCurrentContext:0];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment