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

Fix iosdisplay buffers delete

parent 17fa1d38
...@@ -118,7 +118,6 @@ ...@@ -118,7 +118,6 @@
} }
glGenFramebuffers(1, &defaultFrameBuffer); glGenFramebuffers(1, &defaultFrameBuffer);
glGenRenderbuffers(1, &colorRenderBuffer); glGenRenderbuffers(1, &colorRenderBuffer);
glBindFramebuffer(GL_FRAMEBUFFER, defaultFrameBuffer); glBindFramebuffer(GL_FRAMEBUFFER, defaultFrameBuffer);
glBindRenderbuffer(GL_RENDERBUFFER, colorRenderBuffer); glBindRenderbuffer(GL_RENDERBUFFER, colorRenderBuffer);
...@@ -223,8 +222,8 @@ ...@@ -223,8 +222,8 @@
ogl_display_free(display_helper); ogl_display_free(display_helper);
display_helper = NULL; display_helper = NULL;
glDeleteFramebuffers(GL_FRAMEBUFFER, &defaultFrameBuffer); glDeleteFramebuffers(1, &defaultFrameBuffer);
glDeleteRenderbuffers(GL_RENDERBUFFER, &colorRenderBuffer); glDeleteRenderbuffers(1, &colorRenderBuffer);
[EAGLContext setCurrentContext:0]; [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