I am creating a scencegraph and passing a DIB that GL renders to. I am passing the same DIB back on each frame render after blitting it to the screen.
The problem is that each frame is remaining in memory somewhere, memory usage shoots through the roof. Somehow I think the DIB isn’t being disposed. I have profiled my appilcation and it disposes all resources so I am assuming that openGL is storing the DIBS and I’m getting a new one every time I render a frame. I’m obviously not telling openGL to destroy something. Does anyone have any idea where to start looking? I’ve been over my code for hours and still can’t find anything