protected override void Dispose(bool disposing) { if (disposing) { RendererTexture?.Dispose(); } RendererTexture = null; base.Dispose(disposing); }
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); }