* Vivian Meazza -- Wednesday 20 June 2007: > Melchior FRANZ > > I don't say that the radar patch is buggy, it's > > just the old render-to-texture feature. (It's also not my > > graphics card driver, as Qt4 has no problems with RTT.)
> Perhaps this isn't a new bug after all. Yes, that's my assumption. I've spent some time on that but still haven't found the cause. Tender-to-texture works in fg/osg and QT4, so it doesn't seem to be a graphics card driver problem. 3D clouds also use RenderTexture but don't cause crashes. So, what's the difference? Answer: the clouds never call the RenderTexture destructor! If I comment out "delete rt" in ~FGODGauge(), then I don't get a crash either. Unfortunately, I couldn't find out if the destruction is really needed (calling glXDestroyPbuffer()). The RTT instruments are only destroyed at exit, and maybe the destruction of the GL context frees everything, anyway? BTW: the TestRenderTexture app in simgear/screen/ does also not crash, despite calling glXDestroyPbuffer() for mode changes (Return-key). But it does also not destroy the RenderTexture class at exit! So is this an acceptable method? Would commenting out "delete rt" be the solution for 0.9.11? (And committing the radar patch, of course. :-) m. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

