diff --git a/opencpn-libs b/opencpn-libs index 3a3368f7..1a6c1a7b 160000 --- a/opencpn-libs +++ b/opencpn-libs @@ -1 +1 @@ -Subproject commit 3a3368f77f9e3d6c9990cc31c3a57c46d624e124 +Subproject commit 1a6c1a7ba74c5bb0fdf141d7d21230f49929fcdc diff --git a/src/ODRolloverWin.cpp b/src/ODRolloverWin.cpp index 6c162bcd..7124f14b 100644 --- a/src/ODRolloverWin.cpp +++ b/src/ODRolloverWin.cpp @@ -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 ) {