示例#1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         RendererTexture?.Dispose();
     }
     RendererTexture = null;
     base.Dispose(disposing);
 }
示例#2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                //GBuffer.Dispose(
                GPosition.Dispose();
                GNormal.Dispose();
                GMaterial.Dispose();
                GAlbedoSpec.Dispose();

                //_DefLightShader.Dispose();
                //_vertices.dis;

                //vao;
                //vbo
            }

            GPosition   = null;
            GNormal     = null;
            GMaterial   = null;
            GAlbedoSpec = null;

            base.Dispose(disposing);
        }