summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Device_Plugin.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2014-12-20 14:41:02 +0000
committerManolo Gouy <Manolo>2014-12-20 14:41:02 +0000
commita60e5400e22d951ecd920e3880636b9e175c7371 (patch)
tree164cfb8b253ed5f4673fe4e68615f63feccdd7b3 /src/Fl_Gl_Device_Plugin.cxx
parent36c2877a60cfd47a9fed6dbf1306c6b31b81bd76 (diff)
Function imgProviderReleaseData() is made apple-specific.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10500 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Device_Plugin.cxx')
-rw-r--r--src/Fl_Gl_Device_Plugin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Gl_Device_Plugin.cxx b/src/Fl_Gl_Device_Plugin.cxx
index 7475deb60..8dbdb297f 100644
--- a/src/Fl_Gl_Device_Plugin.cxx
+++ b/src/Fl_Gl_Device_Plugin.cxx
@@ -88,10 +88,12 @@ static Fl_RGB_Image* capture_gl_rectangle(Fl_Gl_Window *glw, int x, int y, int w
return img;
}
+#ifdef __APPLE__
static void imgProviderReleaseData (void *info, const void *data, size_t size)
{
delete (Fl_RGB_Image *)info;
}
+#endif
/**
This class will make sure that OpenGL printing/screen capture is available if fltk_gl