I posted this a while ago … never got a solution to it …
After running my OpenGL application, I sometimes find that following a timeout on the power management monitor the screen is either corrupted or more often just a plain cyan color. I’ve found that other OpenGL apps do the same but not all of them. It looks as though Windows is being assigned an incorrect DC after the monitor is restored after the power down … obviously my fault !
Anyway, here’s the code that I’m using to close the OpenGL application … as I said, it all works fine … unless the power management kicks in !
if (fPalette <> 0) then
I really would be grateful if anyone could shed some light on what I’m doing … or not doing !