OpenSceneGraph: use slots, build with giflib5, restrict jpeg dep

Change-Id: Ica7f63bc2d6e97130d36817d57c198a331c97a4c
This commit is contained in:
Timo Gurr
2015-02-18 17:43:36 +01:00
committed by Julian Ospald
parent c1eac93b55
commit 062c545c2b
4 changed files with 66 additions and 21 deletions

View File

@@ -0,0 +1,30 @@
Source: https://github.com/openscenegraph/osg/commit/afb442fccd182cfe8608f43394af016f6723f97a
Upstream: Fixed in trunk
Reason: Fix build with giflib 5.0
From afb442fccd182cfe8608f43394af016f6723f97a Mon Sep 17 00:00:00 2001
From: Robert OSFIELD <robert.osfield@gmail.com>
Date: Wed, 19 Nov 2014 17:10:21 +0000
Subject: [PATCH] From Clement Boesch, "Fix remaining bit of Giflib5 usage"
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14485 16af8721-9629-0410-8352-f15c8da7e697
---
src/osgPlugins/gif/ReaderWriterGIF.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/osgPlugins/gif/ReaderWriterGIF.cpp b/src/osgPlugins/gif/ReaderWriterGIF.cpp
index 4b5cd22..12f46e1 100644
--- a/src/osgPlugins/gif/ReaderWriterGIF.cpp
+++ b/src/osgPlugins/gif/ReaderWriterGIF.cpp
@@ -560,7 +560,11 @@ GifImageStream** obj)
*width_ret = giffile->SWidth;
*height_ret = giffile->SHeight;
*numComponents_ret = 4;
+#if (GIFLIB_MAJOR >= 5)
+ DGifCloseFile(giffile, &Error);
+#else
DGifCloseFile(giffile);
+#endif
return buffer;
}