237238239240241242243
this.gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); this.gl.glBindTexture(GL_TEXTURE_2D, 0); this.gl.glBindFramebuffer(GL_FRAMEBUFFER, 0); return new Framebuffer(fb, texture); }