-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting vessel cause crash when running with external graphic client #145
Comments
Please, can you retest it? |
Thanks for implementing this Yes it will work (although I must admit I tested on jarmonik/d3d9client repo branch, Please note that the same issue occurs in 3 other locations in orbiter.cpp see below the suggested fixes #ifdef INLINEGRAPHICS #ifdef INLINEGRAPHICS #ifdef INLINEGRAPHICS |
Thank you a lot, this is a huge PR with all your suggested fixes. |
Testing on the d3d9client branch
The external graphic client clbkDeleteVessel is never called by orbiter core
I got a crash running in debug mode because of this
I suggest to change the following code in orbiter.cpp
#ifdef INLINEGRAPHICS
oclient->clbkDeleteVessel ((OBJHANDLE)vessel);
#endif
to
#ifdef INLINEGRAPHICS
oclient->clbkDeleteVessel ((OBJHANDLE)vessel);
#else
if(gclient)
gclient->clbkDeleteVessel((OBJHANDLE)vessel);
#endif
same problem exists with other virtual module functions
Or maybe the d3d9client should register these functions ?
The text was updated successfully, but these errors were encountered: