Trying to set up an Opengl context to render into a bitmap but I've found the handle returned from the Tbimap canvas object keeps changing so the rendering context keeps throwing an exception because it doesn't match the handle the rendering context was created with.
I found changing the bitmaps width or height will change the handle value, and if the bitmap is created outside of the procedure that does the rendering, you get a different handle each time you enter the procedure.
I need this to stay static or its all a bit pointless having the ability to render to a bitmap in the first place.
Any clues how to fix the handle?