diff --git a/kivy/graphics/fbo.pxd b/kivy/graphics/fbo.pxd index 4a6f55c09..63e939105 100644 --- a/kivy/graphics/fbo.pxd +++ b/kivy/graphics/fbo.pxd @@ -15,9 +15,9 @@ cdef class Fbo(RenderContext): cdef int _is_bound cpdef clear_buffer(self) + cpdef bind(self) + cpdef release(self) - cdef bind(self) - cdef release(self) cdef create_fbo(self) cdef delete_fbo(self) cdef apply(self) diff --git a/kivy/graphics/fbo.pyx b/kivy/graphics/fbo.pyx index 744985b9a..dd5e9eb05 100644 --- a/kivy/graphics/fbo.pyx +++ b/kivy/graphics/fbo.pyx @@ -180,7 +180,7 @@ cdef class Fbo(RenderContext): projection_mat.view_clip(0.0, self._width, 0.0, self._height, -1.0, 1.0, 0) self.set_state('projection_mat', projection_mat) - cdef bind(self): + cpdef bind(self): if self._is_bound: raise FboException('FBO is already binded.') else: @@ -195,7 +195,7 @@ cdef class Fbo(RenderContext): glGetIntegerv(GL_VIEWPORT, &self._viewport) glViewport(0, 0, self._width, self._height) - cdef release(self): + cpdef release(self): if self._is_bound == 0: raise FboException('Cannot release a FBO not binded.') else: