I’m an OpenGL newbie and I have a little issue…
I’m adding a 3D view option to a graphing program. The program draws the graphs into a bitmap DC created used CreateCompatibleBitmap, then BitBlts it onto the client area. This allows very slick panning and scaling and also makes it easy to cut and paste the graphs into documents.
I’ve done the 3D view in a similar way by using PFD_DRAW_TO_BITMAP and it works very well…UNTIL the bitmap reaches about 700 x 300 pixels, when the model simply disappears!
The bitmap size is determined by the size of the client area, so resizing the application window causes a redraw into a newly sized bitmap. The bug is quite repeatable, such that you can drag the window bigger and the model disappears at exactly the same point, then reappears when the window is shrunk back to that point.
None of the OpenGL or windows functions seem to be failing, and it’s temping to think it’s a windows issue, but the graph view works a treat on huge displays.