04.07., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

...
 
Commits (2)
......@@ -128,7 +128,8 @@ TARGET_LINK_LIBRARIES(campvis-application-lib ${CampvisMainLibs} ${CampvisGlobal
# the code to export DLL symbols
SET_TARGET_PROPERTIES(campvis-application-lib PROPERTIES DEFINE_SYMBOL "CAMPVIS_APPLICATION_BUILD_DLL")
target_compile_definitions(campvis-application-lib PUBLIC ${CampvisGlobalDefinitions} ${CampvisModulesDefinitions} ${CampvisApplicationDefinitions})
target_compile_definitions(campvis-application-lib PUBLIC ${CampvisModulesDefinitions} ${CampvisApplicationDefinitions})
target_compile_options(campvis-application-lib PUBLIC ${CampvisGlobalDefinitions})
target_include_directories(campvis-application-lib PUBLIC ${CampvisGlobalIncludeDirs} ${CampvisModulesIncludeDirs})
IF(CAMPVIS_GROUP_SOURCE_FILES)
......
......@@ -90,7 +90,7 @@ ELSEIF(${CMAKE_GENERATOR} MATCHES "MinGW")
SET(CAMPVIS_MINGW TRUE)
SET(CAMPVIS_WIN32 TRUE)
MESSAGE("MinGW 32 Bit Build (not actively supported)")
ELSEIF(${CMAKE_GENERATOR} MATCHES "Unix")
ELSEIF(${CMAKE_GENERATOR} MATCHES "Unix" OR ${CMAKE_GENERATOR} MATCHES "XCode")
SET(CAMPVIS_UNIX TRUE)
MESSAGE(STATUS "Unix Build")
ELSE()
......
......@@ -99,7 +99,7 @@ namespace campvis {
CAMPVIS_CORE_API void startOpenGlThreadAndMoveQtThreadAffinity(cgt::Runnable* runnable, cgt::GLCanvas* canvas) {
// welcome to a complex signalling ping-pong to move the OpenGL context thread affinity
// we will use targetThread as signalling variable and initialize it with nullptr:
void* targetThread = nullptr;
volatile void* targetThread = nullptr;
// start the new thread with special init function
runnable->start([&]() {
......
......@@ -55,6 +55,8 @@ namespace cgt {
// Init GLEW for this context
context->acquireAsCurrentContext();
glewExperimental=true; // required in case an old glew version is used
GLenum err = glewInit();
if (err != GLEW_OK) {
// Problem: glewInit failed, something is seriously wrong.
......