Skip to content

Commit

Permalink
Avoid crashes related to non-GL mode on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
nohal committed Apr 2, 2024
1 parent c514acd commit da04050
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opencpn-libs
6 changes: 5 additions & 1 deletion src/ODRolloverWin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ ODRolloverWin::~ODRolloverWin()
{
m_timer_timeout.Stop();
delete m_pbm;
glDeleteTextures(1, &m_texture);
#ifdef ocpnUSE_GL
if (g_bOpenGL) {
glDeleteTextures(1, &m_texture);
}
#endif
}
void ODRolloverWin::OnTimer( wxTimerEvent& event )
{
Expand Down

0 comments on commit da04050

Please sign in to comment.