public void DeleteRenderTarget() { if (m_depthBuffer != 0) { GL.DeleteRenderbuffers(1, ref m_depthBuffer); m_depthBuffer = 0; } if (m_frameBuffer != 0) { GLWrapper.DeleteFramebuffer(m_frameBuffer); m_frameBuffer = 0; } }
public void DeleteRenderTarget() { if (m_depthBuffer != 0) { GL.DeleteRenderbuffers(1, ref m_depthBuffer); m_depthBuffer = 0; } if (m_frameBuffer != 0) { GLWrapper.DeleteFramebuffer(m_frameBuffer); m_frameBuffer = 0; } }