Browse Source

Merge branch 'master' into compatibility

Vladimír Vondruš 13 years ago
parent
commit
a9fdfb77cc
  1. 2
      modules/FindCorrade.cmake
  2. 8
      src/OpenGL.h

2
modules/FindCorrade.cmake

@ -212,7 +212,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()

8
src/OpenGL.h

@ -31,6 +31,8 @@
#include <corradeConfigure.h>
#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 <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
/* We need to define missing types for new extensions */
#include <cstdint>
typedef struct __GLsync *GLsync;
typedef std::uint64_t GLuint64;
typedef std::int64_t GLint64;
#undef __gl2ext_h_
#include "OpenGL/GLES2/gl2ext.h"

Loading…
Cancel
Save