aboutsummaryrefslogtreecommitdiff
path: root/ports/openvdb/UseGLEWOnWindowsForViewer.patch
diff options
context:
space:
mode:
authorVictor Romero <romerosanchezv@gmail.com>2019-02-26 08:16:20 -0800
committerGitHub <noreply@github.com>2019-02-26 08:16:20 -0800
commitbd94d1e254aede85506e07a632d1a7aafd538115 (patch)
tree3b99452b7346175aca0d514dafc8324eb07364b8 /ports/openvdb/UseGLEWOnWindowsForViewer.patch
parentecff2997f686d9169e3d088541fda7aa2ea62011 (diff)
downloadvcpkg-bd94d1e254aede85506e07a632d1a7aafd538115.tar.gz
vcpkg-bd94d1e254aede85506e07a632d1a7aafd538115.zip
[freeimage, libwebp, OpenEXR, OpenVDB] Updates (#5417)
* [libwebp] update to v1.0.2, greatly simplify port, remove unnecessary custom find_package script in favour of original Config files for cmake * [libwebp] enable building of all tools * [libwebp] install cmake config file in expected path * [libwebp] add compatibility layer inside CMake Config file * [libwebp] fix libwebpmux library name * [OpenEXR] Update to v2.3.0, enable tools, improve cmake module while still maintaining backwards compatibility (there's an official one distributed with the package but it is completely different, for now it is avoided) * [OpenEXR] remove unused patches * [OpenEXR] remove forced definition, could hide problems downstream * [freeimage] add compatibility with latest OpenEXR * [freeimage] bump control * [OpenEXR] restore ilmbase as an empty package to permit clean update * [OpenVDB] update to v6.0 * [OpenEXR] disable building on UWP platform * [openexr] Fix tools suffixes * [openexr] Fix Linux build paths
Diffstat (limited to 'ports/openvdb/UseGLEWOnWindowsForViewer.patch')
-rw-r--r--ports/openvdb/UseGLEWOnWindowsForViewer.patch60
1 files changed, 0 insertions, 60 deletions
diff --git a/ports/openvdb/UseGLEWOnWindowsForViewer.patch b/ports/openvdb/UseGLEWOnWindowsForViewer.patch
deleted file mode 100644
index bfa29c46c..000000000
--- a/ports/openvdb/UseGLEWOnWindowsForViewer.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-diff --git a/openvdb/viewer/ClipBox.h b/openvdb/viewer/ClipBox.h
-index b792491..d2f50cc 100644
---- a/openvdb/viewer/ClipBox.h
-+++ b/openvdb/viewer/ClipBox.h
-@@ -36,6 +36,8 @@
- #if defined(__APPLE__) || defined(MACOSX)
- #include <OpenGL/gl.h>
- #include <OpenGL/glu.h>
-+#elif defined(WIN32)
-+#include <GL/glew.h>
- #else
- #include <GL/gl.h>
- #include <GL/glu.h>
-diff --git a/openvdb/viewer/Font.h b/openvdb/viewer/Font.h
-index 6e79704..566cfbd 100644
---- a/openvdb/viewer/Font.h
-+++ b/openvdb/viewer/Font.h
-@@ -36,6 +36,8 @@
- #if defined(__APPLE__) || defined(MACOSX)
- #include <OpenGL/gl.h>
- #include <OpenGL/glu.h>
-+#elif defined(WIN32)
-+#include <GL/glew.h>
- #else
- #include <GL/gl.h>
- #include <GL/glu.h>
-diff --git a/openvdb/viewer/RenderModules.h b/openvdb/viewer/RenderModules.h
-index f4745d9..339dfc3 100644
---- a/openvdb/viewer/RenderModules.h
-+++ b/openvdb/viewer/RenderModules.h
-@@ -43,6 +43,8 @@
- #if defined(__APPLE__) || defined(MACOSX)
- #include <OpenGL/gl.h>
- #include <OpenGL/glu.h>
-+#elif defined(WIN32)
-+#include <GL/glew.h>
- #else
- #include <GL/gl.h>
- #include <GL/glu.h>
-diff --git a/openvdb/viewer/Viewer.cc b/openvdb/viewer/Viewer.cc
-index 307aa2b..8b79358 100644
---- a/openvdb/viewer/Viewer.cc
-+++ b/openvdb/viewer/Viewer.cc
-@@ -540,7 +540,15 @@ ViewerImpl::open(int width, int height)
- std::shared_ptr<GLFWwindow> curWindow(
- glfwGetCurrentContext(), glfwMakeContextCurrent);
- glfwMakeContextCurrent(mWindow);
-- BitmapFont13::initialize();
-+ BitmapFont13::initialize();
-+#ifdef WIN32
-+ if (glewInit() == GLEW_OK) {
-+ OPENVDB_LOG_DEBUG_RUNTIME("initialized GLEW from thread "
-+ << boost::this_thread::get_id());
-+ } else {
-+ OPENVDB_LOG_ERROR("GLEW initialization failed");
-+ }
-+#endif
- }
- }
- mCamera->setWindow(mWindow);