Mac OS: added gl_texture_reset() function to be called when deleting an Fl_Gl_Window
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
a58a2ed9fb
commit
8d7c246676
@ -474,7 +474,8 @@ Fl_Gl_Window::~Fl_Gl_Window() {
|
||||
// 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
|
||||
}
|
||||
|
||||
|
@ -564,6 +564,12 @@ void gl_texture_pile_height(int max)
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user