public OvrSharedRendertarget(int w, int h, Hmd hmd)
        {
            width = w;
            height = h;

            hmd.CreateSwapTextureSetGL((uint)All.Srgb8Alpha8, width, height, out textureSet);

            for (int i = 0; i < textureSet.TextureCount; i++)
            {
                GL.BindTexture(TextureTarget.Texture2D, textureSet.Textures[i].TexId);

                GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureMinFilter, (int)TextureMinFilter.Linear);
                GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureMagFilter, (int)TextureMagFilter.Linear);
                GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureWrapS, (int)All.ClampToEdge);
                GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureWrapT, (int)All.ClampToEdge);
            }

            GL.GenFramebuffers(1, out fboId);
        }