void GLES2FrameBufferObject::notifyOnContextReset(const GLSurfaceDesc &target) { // Generate framebuffer object OGRE_CHECK_GL_ERROR(glGenFramebuffers(1, &mFB)); OGRE_CHECK_GL_ERROR(glBindFramebuffer(GL_FRAMEBUFFER, mFB)); // Bind target to surface 0 and initialise bindSurface(0, target); }
void GLESFrameBufferObject::notifyOnContextReset(const GLESSurfaceDesc &target) { /// Generate framebuffer object glGenFramebuffersOES(1, &mFB); GL_CHECK_ERROR; glBindFramebufferOES(GL_FRAMEBUFFER_OES, mFB); GL_CHECK_ERROR; // Bind target to surface 0 and initialise bindSurface(0, target); GL_CHECK_ERROR; }