/// <summary> /// /// </summary> public void Dispose() { if (ColorTexture != null) { ColorTexture.Dispose(); } if (DepthTexture != null) { DepthTexture.Dispose(); } //if (FBOHandle != 0) // TK.GL.Ext.DeleteFramebuffers(1, ref FBOHandle); GC.SuppressFinalize(this); }
public void Dispose() { if (ID == 0) { return; } int id = ID; GL.DeleteFramebuffers(1, ref id); ColorTexture.Dispose(); DepthTexture.Dispose(); ID = 0; Width = 0; Height = 0; ColorTexture = null; DepthTexture = null; }