Example #1
0
        //private bool dumped;

        private void RenderTexToScreen(GLTextureObject tex)
        {
            this.visibleFbo.Bind();
            //Render texture to screen
            GL.ClearColor(0.0f, 0.0f, 0.0f, 0.0f);
            GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
            tex.Bind();
            this.shader.SetUniform("FrameTx", tex.TextureUnit);
            this.shader.SetUniform("Mode", 0);
            RenderToFramebuffer();
            SwapBuffers();
        }