From dbafac0ba3172ce293d0a4e6f59dabea6b8c5c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 14 Dec 2013 22:34:19 +0100 Subject: [PATCH 1/2] Updated FindCorrade.cmake from Corrade repository. --- modules/FindCorrade.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FindCorrade.cmake b/modules/FindCorrade.cmake index f8e88612d..4e5a164d0 100644 --- a/modules/FindCorrade.cmake +++ b/modules/FindCorrade.cmake @@ -194,7 +194,7 @@ set(CORRADE_PLUGINMANAGER_LIBRARIES ${CORRADE_PLUGINMANAGER_LIBRARY} ${CORRADE_U set(CORRADE_TESTSUITE_LIBRARIES ${CORRADE_TESTSUITE_LIBRARY} ${CORRADE_UTILITY_LIBRARIES}) # At least static build needs this -if(UNIX OR CORRADE_TARGET_NACL_GLIBC) +if((UNIX OR CORRADE_TARGET_NACL) AND NOT CORRADE_TARGET_NACL_NEWLIB) set(CORRADE_PLUGINMANAGER_LIBRARIES ${CORRADE_PLUGINMANAGER_LIBRARIES} ${CMAKE_DL_LIBS}) endif() From 0e370efa0ca53b989fe90ee45c76853b7fca96ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 14 Dec 2013 22:34:39 +0100 Subject: [PATCH 2/2] Work around missing types in NaCl's `gl2.h`. --- src/OpenGL.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/OpenGL.h b/src/OpenGL.h index 796f1ad42..b40af2f11 100644 --- a/src/OpenGL.h +++ b/src/OpenGL.h @@ -31,6 +31,8 @@ #include #include "magnumConfigure.h" +/** @todo Remove NaCl workaround when not needed */ + /* Desktop OpenGL */ #ifndef MAGNUM_TARGET_GLES #include "OpenGL/GL/gl_magnum.h" @@ -44,6 +46,12 @@ #include #include + + /* We need to define missing types for new extensions */ + #include + typedef struct __GLsync *GLsync; + typedef std::uint64_t GLuint64; + typedef std::int64_t GLint64; #undef __gl2ext_h_ #include "OpenGL/GLES2/gl2ext.h"