public override void Deallocate() { context.Synchronize(); this.xRes = 0; this.yRes = 0; accumBuffer.Free(); if (glOutputBufferID != 0) { context.GLUnregisterBufferObject(glOutputBufferID); glOutputBufferID = 0; GL.DeleteBuffers(1, ref glOutputBufferID); } }
public override void Destroy() { Deallocate(); iterPosStateBuffer.Free(); iterColorStateBuffer.Free(); entropyXBuffer.Free(); entropyCBuffer.Free(); dotCountBuffer.Free(); peakDensityBuffer.Free(); totalIterCountMem.Free(); totalDotCountMem.Free(); densityMem.Free(); peakDensityMem.Free(); scaleConstantMem.Free(); paletteImage.Free(); module.Dispose(); context.Dispose(); }