public static void ReleaseAll() { if (temp != null) { temp.Release(); temp = null; } if (colorBuff != null) { colorBuff.Release(); colorBuff = null; } if (renderQuad != null) { renderQuad.Release(); renderQuad = null; } if (renderBuff != null) { renderBuff.Release(); renderBuff = null; } if (frameBuff != null) { frameBuff.Release(); frameBuff = null; } }
public static void ReleaseAll() { if (colorBuff != null) { colorBuff.Release(); } if (renderQuad != null) { renderQuad.Release(); } if (renderBuff != null) { renderBuff.Release(); } if (frameBuff != null) { frameBuff.Release(); } }
public override void Release() { if (frame != null) { frame.Release(); frame = null; } if (depth != null) { depth.Release(); depth = null; } if (color != null) { for (int i = 0; i < color.Length; ++i) { color[i].Release(); } color = null; } }