Skip to content

Commit

Permalink
Merge pull request #547 from nohal/macos_gl
Browse files Browse the repository at this point in the history
Avoid crashes related to non-GL mode on macOS
  • Loading branch information
jongough authored Apr 2, 2024
2 parents c514acd + da04050 commit f004bc9
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 f004bc9

Please sign in to comment.