Author: manolo
Date: 2011-03-26 14:56:24 -0700 (Sat, 26 Mar 2011)
New Revision: 8537
Log:
Mac OS: added gl_texture_reset() function to be called when deleting an
Fl_Gl_Window
Modified:
branches/branch-1.3/src/Fl_Gl_Window.cxx
branches/branch-1.3/src/gl_draw.cxx
Modified: branches/branch-1.3/src/Fl_Gl_Window.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Gl_Window.cxx 2011-03-26 14:37:28 UTC (rev
8536)
+++ branches/branch-1.3/src/Fl_Gl_Window.cxx 2011-03-26 21:56:24 UTC (rev
8537)
@@ -474,7 +474,8 @@
// delete overlay; this is done by ~Fl_Group
#ifdef __APPLE__
// resets the pile of string textures used to draw strings
- gl_texture_pile_height(gl_texture_pile_height());
+ extern void gl_texture_reset();
+ gl_texture_reset();
#endif
}
Modified: branches/branch-1.3/src/gl_draw.cxx
===================================================================
--- branches/branch-1.3/src/gl_draw.cxx 2011-03-26 14:37:28 UTC (rev 8536)
+++ branches/branch-1.3/src/gl_draw.cxx 2011-03-26 21:56:24 UTC (rev 8537)
@@ -564,6 +564,12 @@
int gl_texture_pile_height(void) {return 0;}
void gl_texture_pile_height(int max) {}
#endif // GL_DRAW_USES_TEXTURES
+#if defined(__APPLE__)
+void gl_texture_reset()
+{
+ if (gl_fifo) gl_texture_pile_height(gl_texture_pile_height());
+}
+#endif
#endif // HAVE_GL
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit